123456789101112131415161718192021222324 |
- /*
- * plugin private.h
- */
- #include "lub/list.h"
- #include "clish/plugin.h"
- /*---------------------------------------------------------
- * PRIVATE TYPES
- *--------------------------------------------------------- */
- struct clish_sym_s {
- char *name; /* Symbol name */
- clish_plugin_fn_t *func; /* Function address */
- bool_t permanent; /* If permanent the dry-run can't switch off it */
- clish_plugin_t *plugin; /* Parent plugin */
- };
- struct clish_plugin_s {
- char *file; /* Plugin file name. Must be unique. */
- char *name; /* Local plugin name. Can be used in builtin ref. */
- lub_list_t *syms; /* List of plugin symbols */
- void *dlhan; /* Handler of dlopen() */
- };
|