|
#define | NAME_MAX 255 |
|
#define | __func__ ekg_itoa(__LINE__) |
|
#define | XMSG_UID_DIROFFSET 5 |
|
#define | XMSG_NAMESEP_DEF "." |
|
#define | XMSG_MAXFS_DEF "16384" |
|
#define | XMSG_MAXFC_DEF "25" |
|
#define | XMSG_MAXFC_TIMER "3" |
|
#define | XMSG_TMPFILE_PATH "/tmp/xmsg.XXXXXX" |
|
#define | XMSG_TIMER_DEF "300" |
|
#define | xerr(txt, ...) do { debug_error("[xmsg:%s] " txt "\n", __func__, ##__VA_ARGS__); return -1; } while (0) |
|
#define | xerrn(txt, ...) do { debug_error("[xmsg:%s] " txt ": %s\n", __func__, ##__VA_ARGS__, strerror(errno)); return -1; } while (0) |
|
#define | xdebug(txt, ...) debug("[xmsg:%s] " txt "\n", __func__, ##__VA_ARGS__) |
|
#define | xdebug2(lvl, txt, ...) debug_ext(lvl, "[xmsg:%s] " txt "\n", __func__, ##__VA_ARGS__) |
|
#define | X(x, y) (x ? x : y) |
|
#define | XMSG_CMDFLAGS SESSION_MUSTBELONG |
|
#define | XMSG_CMDFLAGS_TARGET SESSION_MUSTBELONG|COMMAND_ENABLEREQPARAMS|COMMAND_PARAMASTARGET|SESSION_MUSTBECONNECTED |
|
|
static int | xmsg_theme_init (void) |
|
static int | xmsg_plugin_destroy () |
|
static int | xmsg_checkoutfile (const char *file, char **data, int *len, time_t *ts, const int maxlen) |
|
static const char * | xmsg_dirfix (const char *path) |
|
static int | xmsg_handle_file (session_t *s, const char *fn) |
|
static gint | xmsg_iterate_dir (gint type, session_t *s) |
|
static void | xmsg_timer_change (session_t *s, const char *varname) |
|
static int | xmsg_disconnect (const char *name, const char **params, session_t *session, const char *target, int quiet) |
|
static int | xmsg_handle_sigusr (void *data, va_list ap) |
|
static int | xmsg_validate_uid (void *data, va_list ap) |
|
static int | xmsg_add_watch (session_t *s, const char *f) |
|
static int | xmsg_connect (const char *name, const char **params, session_t *session, const char *target, int quiet) |
|
static int | xmsg_reconnect (const char *name, const char **params, session_t *session, const char *target, int quiet) |
|
static void | xmsg_unlink_dotfiles (session_t *s, const char *varname) |
|
static int | xmsg_msg (const char *name, const char **params, session_t *session, const char *target, int quiet) |
|
static int | xmsg_inline_msg (const char *name, const char **params, session_t *session, const char *target, int quiet) |
|
int | xmsg_plugin_init (int prio) |
|