1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- *
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdint.h>
- #include <assert.h>
- #include <faux/faux.h>
- #include <klish/kplugin.h>
- #include <klish/kcontext.h>
- #include "private.h"
- const uint8_t kplugin_shell_major = KPLUGIN_MAJOR;
- const uint8_t kplugin_shell_minor = KPLUGIN_MINOR;
- int kplugin_shell_init(kcontext_t *context)
- {
- kplugin_t *plugin = NULL;
- ksym_t *sym = NULL;
- assert(context);
- plugin = kcontext_plugin(context);
- assert(plugin);
- kplugin_add_syms(plugin, ksym_new("shell", shell_shell));
- return 0;
- }
- int kplugin_shell_fini(kcontext_t *context)
- {
- // fprintf(stderr, "Plugin 'shell' fini\n");
- context = context;
- return 0;
- }
|