/common/home/bel/bella/lnx/exports/build/current/all/op-services/consmngr/intf/consintf.h

00001 #ifndef _CONSINTF_H
00002 #define _CONSINTF_H
00003 
00004 #include "xcons.h"
00005 
00024 
00033 int cons_set_name( char *consolename );
00034 
00043 int cons_get_name( char *consolename, int len );
00044 
00078 int cons_cmd_local( char *cmd );
00079 int cons_cmd( char *cmd );
00080 int cons_cmd_sync( char *cmd );
00081 
00082 
00093 int parse_cmd( char *cmd, xcons_request_t *preq );
00094 
00095 
00099 typedef struct
00100 {
00101   char console[256]; // console name
00102   int node;   // node of console
00103 } cons_info_t;
00104 
00112 int cons_info( cons_info_t *pinfo );
00113 
00114 
00116 #define CONS_STATUS_STARTED 0x01
00118 #define CONS_STATUS_NOTIFIED 0x02
00120 #define CONS_STATUS_DIED 0x04
00122 #define CONS_STATUS_TERMINATED 0x10
00124 #define CONS_STATUS_KILLED 0x08
00125 
00129 typedef struct
00130 {
00131   int pid;        
00132   int status;     
00133   int exit;       
00134 } cons_proc_t;
00135 
00146 int cons_print_status( int status, char *buf, int buflen );
00147 
00156 int cons_proc_check( char *proc, cons_proc_t *pstatus );
00157 
00166 int cons_proc_set( char *proc, cons_proc_t *pstatus );
00167 
00174 int cons_proc_init( void );
00175 
00179 char *cons_get_logenv(void);
00180 
00184 char *cons_get_logsuf( void );
00185 
00193 char *cons_get_logname( void );
00197 #endif
00198 

Generated on 4 Mar 2014 for consintf by  doxygen 1.4.7