mbgtools-lx  4.2.8
Service Management

Data Structures

struct  MBG_SERVICE_MGMT_INFO
 
struct  MBG_SERVICE_SETTINGS
 
struct  MBG_SERVICE_SETTINGS_IDX
 
struct  MBG_SERVICE_INFO
 
struct  MBG_SERVICE_INFO_IDX
 
struct  MBG_SERVICE_STATUS
 
struct  MBG_SERVICE_STATUS_IDX
 

Macros

#define MBG_SERVICE_TYPE_STRS
 
#define _mbg_swab_svc_mgmt_info(_p)   do {} while ( 0 )
 
#define MBG_SVC_NAME_LEN   32
 
#define MBG_SVC_CMD_LEN   192
 
#define MBG_SERVICE_STATE_STRS
 
#define _mbg_swab_svc_settings(_p)   do {} while ( 0 )
 
#define _mbg_swab_svc_settings_idx(_p)
 
#define _mbg_swab_svc_info(_p)
 
#define _mbg_swab_svc_info_idx(_p)
 
#define _mbg_swab_svc_status(_p)   do {} while ( 0 )
 
#define _mbg_swab_svc_status_idx(_p)
 

Enumerations

enum  MBG_SERVICE_TYPES { MBG_SVC_TYPE_NTP, MBG_SVC_TYPE_SNMP, N_MBG_SVC_TYPES }
 
enum  MBG_SERVICE_MSKS { MBG_SVC_NTP_MSK = ( 1UL << MBG_SVC_TYPE_NTP ), MBG_SVC_SNMP_MSK = ( 1UL << MBG_SVC_TYPE_SNMP ) }
 
enum  MBG_SERVICE_STATE { MBG_SVC_UNKNOWN, MBG_SVC_RUNNING, MBG_SVC_STOPPED, N_MBG_SVC_STATES }
 
enum  MBG_SERVICE_CTL { MBG_SVC_START, MBG_SVC_STOP, MBG_SVC_RESTART, N_MBG_SVC_CTLS }
 
enum  MBG_SERVICE_INFO_FLAGS { MBG_SVC_CAN_BE_DISABLED, MBG_SVC_CAN_EDIT_CMDLINE, N_MBG_SVC_FLAGS }
 
enum  MBG_SERVICE_INFO_MSKS { MBG_SVC_MSK_CAN_BE_DISABLED = ( 1UL << MBG_SVC_CAN_BE_DISABLED ), MBG_SVC_MSK_CAN_EDIT_CMDLINE = ( 1UL << MBG_SVC_CAN_EDIT_CMDLINE ) }
 

Detailed Description

Note
These structures and definitions provide extended service management for Meinberg devices based on Linux / Windows. if MBG_XFEATURE_SERVICE is set in the extended device features.

Macro Definition Documentation

◆ _mbg_swab_svc_info

#define _mbg_swab_svc_info (   _p)
Value:
do \
{ \
_mbg_swab_svc_settings( &(_p)->settings ); \
} while ( 0 )

Definition at line 23116 of file gpsdefs.h.

◆ _mbg_swab_svc_info_idx

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

Definition at line 23131 of file gpsdefs.h.

Referenced by mbgextio_get_svc_info_idx().

◆ _mbg_swab_svc_mgmt_info

#define _mbg_swab_svc_mgmt_info (   _p)    do {} while ( 0 )

Definition at line 23023 of file gpsdefs.h.

Referenced by mbgextio_get_svc_mgmt_info().

◆ _mbg_swab_svc_settings

#define _mbg_swab_svc_settings (   _p)    do {} while ( 0 )

Definition at line 23068 of file gpsdefs.h.

◆ _mbg_swab_svc_settings_idx

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

Definition at line 23079 of file gpsdefs.h.

Referenced by mbgextio_set_svc_settings_idx().

◆ _mbg_swab_svc_status

#define _mbg_swab_svc_status (   _p)    do {} while ( 0 )

Definition at line 23148 of file gpsdefs.h.

◆ _mbg_swab_svc_status_idx

#define _mbg_swab_svc_status_idx (   _p)
Value:
do \
{ \
_mbg_swab32( &(_p)->idx ); \
_mbg_swab_svc_status( &(_p)->status ); \
} while ( 0 )

Definition at line 23159 of file gpsdefs.h.

Referenced by mbgextio_get_svc_status_idx().

◆ MBG_SERVICE_STATE_STRS

#define MBG_SERVICE_STATE_STRS
Value:
{ \
"Unknown", \
"Running", \
"Stopped" \
}

Definition at line 23040 of file gpsdefs.h.

◆ MBG_SERVICE_TYPE_STRS

#define MBG_SERVICE_TYPE_STRS
Value:
{ \
"NTP", \
"SNMP" \
}

Definition at line 22999 of file gpsdefs.h.

◆ MBG_SVC_CMD_LEN

#define MBG_SVC_CMD_LEN   192

Definition at line 23027 of file gpsdefs.h.

◆ MBG_SVC_NAME_LEN

#define MBG_SVC_NAME_LEN   32

Definition at line 23026 of file gpsdefs.h.

Enumeration Type Documentation

◆ MBG_SERVICE_CTL

Enumerator
MBG_SVC_START 
MBG_SVC_STOP 
MBG_SVC_RESTART 
N_MBG_SVC_CTLS 

Definition at line 23048 of file gpsdefs.h.

◆ MBG_SERVICE_INFO_FLAGS

Enumerator
MBG_SVC_CAN_BE_DISABLED 
MBG_SVC_CAN_EDIT_CMDLINE 
N_MBG_SVC_FLAGS 

Definition at line 23087 of file gpsdefs.h.

◆ MBG_SERVICE_INFO_MSKS

Enumerator
MBG_SVC_MSK_CAN_BE_DISABLED 

See MBG_SVC_CAN_BE_DISABLED.

MBG_SVC_MSK_CAN_EDIT_CMDLINE 

See MBG_SVC_CAN_EDIT_CMDLINE.

Definition at line 23096 of file gpsdefs.h.

◆ MBG_SERVICE_MSKS

Enumerator
MBG_SVC_NTP_MSK 

See MBG_SVC_TYPE_NTP.

MBG_SVC_SNMP_MSK 

See MBG_SVC_TYPE_SNMP.

Definition at line 23006 of file gpsdefs.h.

◆ MBG_SERVICE_STATE

Enumerator
MBG_SVC_UNKNOWN 
MBG_SVC_RUNNING 
MBG_SVC_STOPPED 
N_MBG_SVC_STATES 

Definition at line 23030 of file gpsdefs.h.

◆ MBG_SERVICE_TYPES

Enumerator
MBG_SVC_TYPE_NTP 
MBG_SVC_TYPE_SNMP 
N_MBG_SVC_TYPES 

Definition at line 22990 of file gpsdefs.h.