mbgtools-lx  4.2.8
Database(s)

Data Structures

struct  MBG_DATABASE_GLB_INFO
 
struct  MBG_DATABASE_SETTINGS
 
struct  MBG_DATABASE_SETTINGS_IDX
 
struct  MBG_DATABASE_INFO
 
struct  MBG_DATABASE_INFO_IDX
 
struct  MBG_DATABASE_CMD
 

Macros

#define MBG_DATABASE_TYPE_STRS
 
#define _mbg_swab_database_glb_info(_p)
 
#define MBG_DATABASE_MAX_STR   32
 
#define _mbg_swab_database_settings(_p)
 
#define _mbg_swab_database_settings_idx(_p)
 
#define _mbg_swab_database_info(_p)
 
#define _mbg_swab_database_info_idx(_p)
 
#define _mbg_swab_database_cmd(_p)
 

Enumerations

enum  MBG_DATABASE_TYPES { MBG_DATABASE_TYPE_SQLITE, MBG_DATABASE_TYPE_MYSQL, MBG_DATABASE_TYPE_POSTGRESQL, N_MBG_DATABASE_TYPES }
 
enum  MBG_DATABASE_SETTINGS_FLAGS { MBG_DATABASE_SETTINGS_FLAG_ENABLE, MBG_DATABASE_SETTINGS_FLAG_SAVE_PERSIST, N_MBG_DATABASE_SETTINGS_FLAGS }
 
enum  MBG_DATABASE_SETTINGS_FLAG_MSKS { MBG_DATABASE_SETTINGS_FLAG_MSK_ENABLE = (1UL << MBG_DATABASE_SETTINGS_FLAG_ENABLE), MBG_DATABASE_SETTINGS_FLAG_MSK_SAVE_PERSIST = (1UL << MBG_DATABASE_SETTINGS_FLAG_SAVE_PERSIST) }
 
enum  MBG_DATABASE_INFO_FLAGS { MBG_DATABASE_INFO_FLAG_LOCAL_FILE, N_MBG_DATABASE_INFO_FLAGS }
 
enum  MBG_DATABASE_INFO_FLAG_MSKS { MBG_DATABASE_INFO_FLAG_MSK_LOCAL_FILE = ( 1UL << MBG_DATABASE_INFO_FLAG_LOCAL_FILE ) }
 
enum  MBG_DATABASE_MEMBERS {
  MBG_DATABASE_MEMBER_FLAGS, MBG_DATABASE_MEMBER_PORT, MBG_DATABASE_MEMBER_USER, MBG_DATABASE_MEMBER_PASSWORD,
  MBG_DATABASE_MEMBER_HOST, MBG_DATABASE_MEMBER_DBNAME, N_MBG_DATABASE_MEMBERS
}
 
enum  MBG_DATABASE_MEMBER_MSKS {
  MBG_DATABASE_MEMBER_MSK_FLAGS = (1UL << MBG_DATABASE_MEMBER_FLAGS), MBG_DATABASE_MEMBER_MSK_PORT = (1UL << MBG_DATABASE_MEMBER_PORT), MBG_DATABASE_MEMBER_MSK_USER = (1UL << MBG_DATABASE_MEMBER_USER), MBG_DATABASE_MEMBER_MSK_PASSWORD = (1UL << MBG_DATABASE_MEMBER_PASSWORD),
  MBG_DATABASE_MEMBER_MSK_HOST = (1UL << MBG_DATABASE_MEMBER_HOST), MBG_DATABASE_MEMBER_MSK_DBNAME = (1UL << MBG_DATABASE_MEMBER_DBNAME)
}
 
enum  MBG_DATABASE_CMDS { MBG_DATABASE_CMD_RESET_SV_LOGS, N_MBG_DATABASE_CMDS }
 

Detailed Description

Note
These structures and definitions provide database functionality if MBG_XFEATURE_DATABASE is set in the extended device features.

Macro Definition Documentation

◆ _mbg_swab_database_cmd

#define _mbg_swab_database_cmd (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->cmd ); \
_mbg_swab32( &(_p)->length ); \
} while ( 0 )

Definition at line 23611 of file gpsdefs.h.

Referenced by mbgextio_send_database_cmd().

◆ _mbg_swab_database_glb_info

#define _mbg_swab_database_glb_info (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->supp_dbs ); \
} while ( 0 )

Definition at line 23436 of file gpsdefs.h.

Referenced by mbgextio_get_database_glb_info().

◆ _mbg_swab_database_info

#define _mbg_swab_database_info (   _p)
Value:
do \
{ \
_mbg_swab_database_settings( &(_p)->settings ); \
_mbg_swab16( &(_p)->supp_members ); \
_mbg_swab16( &(_p)->supp_cfgs ); \
} while ( 0 )

Definition at line 23569 of file gpsdefs.h.

◆ _mbg_swab_database_info_idx

#define _mbg_swab_database_info_idx (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->idx ); \
_mbg_swab_database_info( &(_p)->info ); \
} while ( 0 )

Definition at line 23586 of file gpsdefs.h.

Referenced by mbgextio_get_database_info_idx().

◆ _mbg_swab_database_settings

#define _mbg_swab_database_settings (   _p)
Value:
do \
{ \
_mbg_swab16( &(_p)->port ); \
} while ( 0 )

Definition at line 23484 of file gpsdefs.h.

◆ _mbg_swab_database_settings_idx

#define _mbg_swab_database_settings_idx (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->idx ); \
_mbg_swab_database_settings( &(_p)->settings ); \
} while ( 0 )

Definition at line 23499 of file gpsdefs.h.

Referenced by mbgextio_set_database_settings_idx().

◆ MBG_DATABASE_MAX_STR

#define MBG_DATABASE_MAX_STR   32

Definition at line 23458 of file gpsdefs.h.

◆ MBG_DATABASE_TYPE_STRS

#define MBG_DATABASE_TYPE_STRS
Value:
{ \
"SQLite", \
"MySQL", \
"PostgreSQL" \
}

Definition at line 23418 of file gpsdefs.h.

Enumeration Type Documentation

◆ MBG_DATABASE_CMDS

Enumerator
MBG_DATABASE_CMD_RESET_SV_LOGS 
N_MBG_DATABASE_CMDS 

Definition at line 23594 of file gpsdefs.h.

◆ MBG_DATABASE_INFO_FLAG_MSKS

Enumerator
MBG_DATABASE_INFO_FLAG_MSK_LOCAL_FILE 

See MBG_DATABASE_INFO_FLAG_LOCAL_FILE.

Definition at line 23514 of file gpsdefs.h.

◆ MBG_DATABASE_INFO_FLAGS

Enumerator
MBG_DATABASE_INFO_FLAG_LOCAL_FILE 

Database is a local file only.

N_MBG_DATABASE_INFO_FLAGS 

Definition at line 23507 of file gpsdefs.h.

◆ MBG_DATABASE_MEMBER_MSKS

Enumerator
MBG_DATABASE_MEMBER_MSK_FLAGS 

See MBG_DATABASE_MEMBER_FLAGS.

MBG_DATABASE_MEMBER_MSK_PORT 

See MBG_DATABASE_MEMBER_PORT.

MBG_DATABASE_MEMBER_MSK_USER 

See MBG_DATABASE_MEMBER_USER.

MBG_DATABASE_MEMBER_MSK_PASSWORD 

See MBG_DATABASE_MEMBER_PASSWORD.

MBG_DATABASE_MEMBER_MSK_HOST 

See MBG_DATABASE_MEMBER_HOST.

MBG_DATABASE_MEMBER_MSK_DBNAME 

See MBG_DATABASE_MEMBER_DBNAME.

Definition at line 23533 of file gpsdefs.h.

◆ MBG_DATABASE_MEMBERS

Enumerator
MBG_DATABASE_MEMBER_FLAGS 

MBG_DATABASE_SETTINGS::flags is valid

MBG_DATABASE_MEMBER_PORT 

MBG_DATABASE_SETTINGS::port is valid

MBG_DATABASE_MEMBER_USER 

MBG_DATABASE_SETTINGS::user is valid

MBG_DATABASE_MEMBER_PASSWORD 

MBG_DATABASE_SETTINGS::password is valid

MBG_DATABASE_MEMBER_HOST 

MBG_DATABASE_SETTINGS::host is valid

MBG_DATABASE_MEMBER_DBNAME 

MBG_DATABASE_SETTINGS::dbname is valid

N_MBG_DATABASE_MEMBERS 

Definition at line 23521 of file gpsdefs.h.

◆ MBG_DATABASE_SETTINGS_FLAG_MSKS

Enumerator
MBG_DATABASE_SETTINGS_FLAG_MSK_ENABLE 

See MBG_DATABASE_SETTINGS_FLAG_ENABLE.

MBG_DATABASE_SETTINGS_FLAG_MSK_SAVE_PERSIST 

See MBG_DATABASE_SETTINGS_FLAG_SAVE_PERSIST.

Definition at line 23451 of file gpsdefs.h.

◆ MBG_DATABASE_SETTINGS_FLAGS

Enumerator
MBG_DATABASE_SETTINGS_FLAG_ENABLE 

Enable, disable logging to database.

MBG_DATABASE_SETTINGS_FLAG_SAVE_PERSIST 

Save database (cyclically) to a persistent storage.

N_MBG_DATABASE_SETTINGS_FLAGS 

Definition at line 23443 of file gpsdefs.h.

◆ MBG_DATABASE_TYPES

Enumerator
MBG_DATABASE_TYPE_SQLITE 

SQLite.

MBG_DATABASE_TYPE_MYSQL 

MySQL.

MBG_DATABASE_TYPE_POSTGRESQL 

PostgreSQL.

N_MBG_DATABASE_TYPES 

Definition at line 23409 of file gpsdefs.h.