version 1.1, 2012/02/21 23:32:47
|
version 1.1.1.3, 2019/10/22 13:49:55
|
Line 31
|
Line 31
|
return(CMD_ERR_OTHER); \ |
return(CMD_ERR_OTHER); \ |
} while (0) |
} while (0) |
|
|
|
/* Global configuration options */ |
|
enum { |
|
CONSOLE_AUTH /* enable authentication */ |
|
}; |
|
|
/* Configuration options */ |
/* Configuration options */ |
enum { |
enum { |
CONSOLE_LOGGING /* enable logging */ |
CONSOLE_LOGGING /* enable logging */ |
Line 43
|
Line 48
|
SLIST_HEAD(, console_session) sessions; /* active sessions */ |
SLIST_HEAD(, console_session) sessions; /* active sessions */ |
EventRef event; /* connect-event */ |
EventRef event; /* connect-event */ |
pthread_rwlock_t lock; |
pthread_rwlock_t lock; |
|
struct optinfo options; /* Configured options */ |
}; |
}; |
|
|
typedef struct console *Console; |
typedef struct console *Console; |
Line 113
|
Line 119
|
extern int ConsoleStat(Context ctx, int ac, char *av[], void *arg); |
extern int ConsoleStat(Context ctx, int ac, char *av[], void *arg); |
extern Context StdConsoleConnect(Console c); |
extern Context StdConsoleConnect(Console c); |
extern void ConsoleShutdown(Console c); |
extern void ConsoleShutdown(Console c); |
|
extern void ConsoleCancelCleanup(void *rwlock); |
|
|
extern int UserCommand(Context ctx, int ac, char *av[], void *arg); |
extern int UserCommand(Context ctx, int ac, char *av[], void *arg); |
extern int UserStat(Context ctx, int ac, char *av[], void *arg); |
extern int UserStat(Context ctx, int ac, char *av[], void *arg); |