version 1.1.1.1, 2013/07/22 08:44:29
|
version 1.1.1.4, 2021/03/17 00:39:23
|
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 110
|
Line 116
|
extern int ConsoleInit(Console c); |
extern int ConsoleInit(Console c); |
extern int ConsoleOpen(Console c); |
extern int ConsoleOpen(Console c); |
extern int ConsoleClose(Console c); |
extern int ConsoleClose(Console c); |
extern int ConsoleStat(Context ctx, int ac, char *av[], void *arg); | extern int ConsoleStat(Context ctx, int ac, const char *const av[], const 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, const char *const av[], const void *arg); |
extern int UserStat(Context ctx, int ac, char *av[], void *arg); | extern int UserStat(Context ctx, int ac, const char *const av[], const void *arg); |
|
|
#endif |
#endif |
|
|