6 /* first argument of signal must match to active .. */
11 EXPANDO_ARG_WINDOW_ITEM,
13 EXPANDO_NEVER /* special: expando never changes */
16 typedef char* (*EXPANDO_FUNC)
17 (SERVER_REC *server, void *item, int *free_ret);
19 /* Create expando - overrides any existing ones.
20 ... = signal, type, ..., NULL - list of signals that might change the
21 value of this expando */
22 void expando_create(const char *key, EXPANDO_FUNC func, ...);
23 /* Add new signal to expando */
24 void expando_add_signal(const char *key, const char *signal, ExpandoArg arg);
26 void expando_destroy(const char *key, EXPANDO_FUNC func);
28 void expando_bind(const char *key, int funccount, SIGNAL_FUNC *funcs);
29 void expando_unbind(const char *key, int funccount, SIGNAL_FUNC *funcs);
31 /* Returns [<signal id>, EXPANDO_ARG_xxx, <signal id>, ..., -1] */
32 int *expando_get_signals(const char *key);
35 EXPANDO_FUNC expando_find_char(char chr);
36 EXPANDO_FUNC expando_find_long(const char *key);
38 void expandos_init(void);
39 void expandos_deinit(void);