navit  0.5.3-trunk
osso.c File Reference
#include <libosso.h>
#include <stdlib.h>
#include "config.h"
#include "debug.h"
#include "item.h"
#include "attr.h"
#include "navit.h"
#include "plugin.h"
#include "callback.h"
#include "config_.h"

Data Structures

struct  cb_hw_state_trail
 

Functions

static void osso_display_on (struct navit *this_)
 
static gboolean osso_cb_hw_state_idle (struct cb_hw_state_trail *params)
 
static void osso_cb_hw_state (osso_hw_state_t *state, gpointer data)
 
static void osso_navit (struct navit *nav, int add)
 
void plugin_init (void)
 
void plugin_deinit (void)
 

Variables

static osso_context_t * osso_context
 
static struct attr callback = { attr_callback }
 
char * version
 

Function Documentation

◆ osso_cb_hw_state()

static void osso_cb_hw_state ( osso_hw_state_t *  state,
gpointer  data 
)
static
  • Handle osso events
  • Parameters
    stateOsso hardware state
  • Parameters
    dataptr to private data
  • Returns
    nothing

References cb_hw_state_trail::nav, osso_cb_hw_state_idle(), and cb_hw_state_trail::state.

Referenced by osso_navit().

◆ osso_cb_hw_state_idle()

static gboolean osso_cb_hw_state_idle ( struct cb_hw_state_trail params)
static

◆ osso_display_on()

static void osso_display_on ( struct navit this_)
static

References dbg, err(), lvl_warning, and osso_context.

Referenced by osso_navit().

◆ osso_navit()

static void osso_navit ( struct navit nav,
int  add 
)
static

◆ plugin_deinit()

void plugin_deinit ( void  )

References osso_context.

◆ plugin_init()

void plugin_init ( void  )

Variable Documentation

◆ callback

struct attr callback = { attr_callback }
static

◆ osso_context

osso_context_t* osso_context
static

◆ version

void version

Shows a version

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Referenced by binfile_check_version(), org.navitproject.navit.Navit::exit(), index_init(), Java_org_navitproject_navit_Navit_NavitMain(), mapExtract::mapExtract(), osm_protobufdb_parse_info(), and osso_navit().