|
@@ -144,6 +144,7 @@ clish_plugin_t *clish_plugin_new(const char *name)
|
|
|
this->conf = NULL;
|
|
|
this->alias = NULL;
|
|
|
this->file = NULL;
|
|
|
+ this->builtin_flag = BOOL_FALSE; /* The plugin is shared object by default */
|
|
|
this->dlhan = NULL;
|
|
|
/* Initialise the list of symbols */
|
|
|
this->syms = lub_list_new(clish_sym_compare);
|
|
@@ -392,6 +393,18 @@ char *clish_plugin__get_file(const clish_plugin_t *this)
|
|
|
return this->file;
|
|
|
}
|
|
|
|
|
|
+/*--------------------------------------------------------- */
|
|
|
+void clish_plugin__set_builtin_flag(clish_plugin_t *this, bool_t builtin_flag)
|
|
|
+{
|
|
|
+ this->builtin_flag = builtin_flag;
|
|
|
+}
|
|
|
+
|
|
|
+/*--------------------------------------------------------- */
|
|
|
+bool_t clish_plugin__get_builtin_flag(const clish_plugin_t *this)
|
|
|
+{
|
|
|
+ return this->builtin_flag;
|
|
|
+}
|
|
|
+
|
|
|
/*--------------------------------------------------------- */
|
|
|
void clish_plugin__set_conf(clish_plugin_t *this, const char *conf)
|
|
|
{
|