|
ekg2
GIT master
|
#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <errno.h>#include <unistd.h>#include <dlfcn.h>#include "commands.h"#include "debug.h"#include "dynstuff.h"#include "plugins.h"#include "stuff.h"#include "vars.h"#include "themes.h"#include "xmalloc.h"#include "dynstuff_inline.h"#include "queries.h"
Funkcje | |
| static int | plugin_register_compare (const plugin_t *data1, const plugin_t *data2) |
| static void | plugins_add (plugin_t *new) |
| __attribute__ ((visibility("hidden"))) | |
| static void * | ekg2_dlopen (const char *name) |
| static void * | ekg2_dlsym (void *plugin, char *name) |
| plugin_t * | plugin_find (const char *name) |
| int | plugin_register (plugin_t *p, int prio) |
| int | plugin_unregister (plugin_t *p) |
| query_t * | query_connect_idXXX (plugin_t *plugin, const int id, query_handler_func_t *handler, void *data) |
| int | query_emit_idXXX (plugin_t *plugin, const int id,...) |
| static watch_t * | watch_find (plugin_t *plugin, int fd, watch_type_t type) |
| static void | watch_free_data (watch_t *data) |
| watch_t * | watch_add (plugin_t *plugin, int fd, watch_type_t type, watcher_handler_func_t *handler, void *data) |
| int | watch_remove (plugin_t *plugin, int fd, watch_type_t type) |
| int | plugin_abi_version (int plugin_abi_ver, const char *plugin_name) |
| __attribute__ | ( | (visibility("hidden")) | ) |
|
static |
|
static |
| int plugin_abi_version | ( | int | plugin_abi_ver, |
| const char * | plugin_name | ||
| ) |
| plugin_t* plugin_find | ( | const char * | name | ) |
Find plugin by name
| name | - name of plugin_t |
| int plugin_register | ( | plugin_t * | p, |
| int | prio | ||
| ) |
| int plugin_unregister | ( | plugin_t * | p | ) |
|
static |
| query_t* query_connect_idXXX | ( | plugin_t * | plugin, |
| const int | id, | ||
| query_handler_func_t * | handler, | ||
| void * | data | ||
| ) |
| int query_emit_idXXX | ( | plugin_t * | plugin, |
| const int | id, | ||
| ... | |||
| ) |
| watch_t* watch_add | ( | plugin_t * | plugin, |
| int | fd, | ||
| watch_type_t | type, | ||
| watcher_handler_func_t * | handler, | ||
| void * | data | ||
| ) |
Create new watch_t and add it on the beginning of watches list.
| plugin | - plugin |
| fd | - fd to watch data for. |
| type | - type of watch. |
| handler | - handler of watch. |
| data | - data which be passed to handler. |
|
static |
|
static |
| int watch_remove | ( | plugin_t * | plugin, |
| int | fd, | ||
| watch_type_t | type | ||
| ) |
1.8.13