minimal changes
This commit is contained in:
parent
c5516b5729
commit
05fd6bb723
30
GNUmakefile
30
GNUmakefile
@ -227,10 +227,10 @@ plugin_auth_sqlite_SOURCES := src/plugins/mod_auth_sqlite.c
|
|||||||
plugin_auth_sqlite_TARGET := mod_auth_sqlite.so
|
plugin_auth_sqlite_TARGET := mod_auth_sqlite.so
|
||||||
plugin_auth_sqlite_LIBS := -lsqlite3
|
plugin_auth_sqlite_LIBS := -lsqlite3
|
||||||
|
|
||||||
plugin_chat_history_SOURCE := src/plugins/mod_chat_history.c
|
plugin_chat_history_SOURCES := src/plugins/mod_chat_history.c
|
||||||
plugin_chat_history_TARGET := mod_chat_history.so
|
plugin_chat_history_TARGET := mod_chat_history.so
|
||||||
|
|
||||||
plugin_chat_only_SOURCE := src/plugins/mod_chat_only.c
|
plugin_chat_only_SOURCES := src/plugins/mod_chat_only.c
|
||||||
plugin_chat_only_TARGET := mod_chat_only.so
|
plugin_chat_only_TARGET := mod_chat_only.so
|
||||||
|
|
||||||
plugin_topic_SOURCES := src/plugins/mod_topic.c
|
plugin_topic_SOURCES := src/plugins/mod_topic.c
|
||||||
@ -247,8 +247,26 @@ uhub-passwd_OBJECTS := $(uhub-passwd_SOURCES:.c=.o)
|
|||||||
adcrush_OBJECTS := $(adcrush_SOURCES:.c=.o)
|
adcrush_OBJECTS := $(adcrush_SOURCES:.c=.o)
|
||||||
admin_OBJECTS := $(admin_SOURCES:.c=.o)
|
admin_OBJECTS := $(admin_SOURCES:.c=.o)
|
||||||
|
|
||||||
all_plugins := $(plugin_example_TARGET) $(plugin_logging_TARGET) $(plugin_auth_TARGET) $(plugin_auth_sqlite_TARGET) $(plugin_welcome_TARGET) $(plugin_chat_history_TARGET) $(plugin_chat_only_TARGET) $(plugin_topic_TARGET)
|
all_plugins := \
|
||||||
all_OBJECTS := $(libuhub_OBJECTS) $(uhub_OBJECTS) $(libutils_OBJECTS) $(adcrush_OBJECTS) $(autotest_OBJECTS) $(admin_OBJECTS) $(libadc_common_OBJECTS) $(libadc_client_OBJECTS)
|
$(plugin_example_TARGET) \
|
||||||
|
$(plugin_logging_TARGET) \
|
||||||
|
$(plugin_auth_TARGET) \
|
||||||
|
$(plugin_auth_sqlite_TARGET) \
|
||||||
|
$(plugin_welcome_TARGET) \
|
||||||
|
$(plugin_chat_history_TARGET) \
|
||||||
|
$(plugin_chat_only_TARGET) \
|
||||||
|
$(plugin_topic_TARGET)
|
||||||
|
|
||||||
|
all_OBJECTS := \
|
||||||
|
$(libuhub_OBJECTS) \
|
||||||
|
$(uhub_OBJECTS) \
|
||||||
|
$(libutils_OBJECTS) \
|
||||||
|
$(adcrush_OBJECTS) \
|
||||||
|
$(autotest_OBJECTS) \
|
||||||
|
$(admin_OBJECTS) \
|
||||||
|
$(libadc_common_OBJECTS) \
|
||||||
|
$(libadc_client_OBJECTS)
|
||||||
|
|
||||||
all_OBJECTS += $(all_plugins)
|
all_OBJECTS += $(all_plugins)
|
||||||
|
|
||||||
uhub_BINARY=uhub$(BIN_EXT)
|
uhub_BINARY=uhub$(BIN_EXT)
|
||||||
@ -284,10 +302,10 @@ $(plugin_example_TARGET): $(plugin_example_SOURCES) $(libutils_OBJECTS)
|
|||||||
$(plugin_logging_TARGET): $(plugin_logging_SOURCES) $(libutils_OBJECTS) $(libadc_common_OBJECTS) src/network/network.o
|
$(plugin_logging_TARGET): $(plugin_logging_SOURCES) $(libutils_OBJECTS) $(libadc_common_OBJECTS) src/network/network.o
|
||||||
$(MSG_CC) $(CC) -shared -fPIC -o $@ $^ $(CFLAGS)
|
$(MSG_CC) $(CC) -shared -fPIC -o $@ $^ $(CFLAGS)
|
||||||
|
|
||||||
$(plugin_chat_history_TARGET): $(plugin_chat_history_SOURCE) $(libutils_OBJECTS)
|
$(plugin_chat_history_TARGET): $(plugin_chat_history_SOURCES) $(libutils_OBJECTS)
|
||||||
$(MSG_CC) $(CC) -shared -fPIC -o $@ $^ $(CFLAGS)
|
$(MSG_CC) $(CC) -shared -fPIC -o $@ $^ $(CFLAGS)
|
||||||
|
|
||||||
$(plugin_chat_only_TARGET): $(plugin_chat_only_SOURCE) $(libutils_OBJECTS)
|
$(plugin_chat_only_TARGET): $(plugin_chat_only_SOURCES) $(libutils_OBJECTS)
|
||||||
$(MSG_CC) $(CC) -shared -fPIC -o $@ $^ $(CFLAGS)
|
$(MSG_CC) $(CC) -shared -fPIC -o $@ $^ $(CFLAGS)
|
||||||
|
|
||||||
$(plugin_welcome_TARGET): $(plugin_welcome_SOURCES) $(libutils_OBJECTS)
|
$(plugin_welcome_TARGET): $(plugin_welcome_SOURCES) $(libutils_OBJECTS)
|
||||||
|
@ -109,7 +109,7 @@ struct hub_user
|
|||||||
struct hub_user_info id; /** Contains nick name and CID */
|
struct hub_user_info id; /** Contains nick name and CID */
|
||||||
enum auth_credentials credentials; /** see enum user_credentials */
|
enum auth_credentials credentials; /** see enum user_credentials */
|
||||||
enum user_state state; /** see enum user_state */
|
enum user_state state; /** see enum user_state */
|
||||||
uint32_t flags; /** see enum user_features */
|
uint32_t flags; /** see enum user_flags */
|
||||||
struct linked_list* feature_cast; /** Features supported by feature cast */
|
struct linked_list* feature_cast; /** Features supported by feature cast */
|
||||||
struct adc_message* info; /** ADC 'INF' message (broadcasted to everyone joining the hub) */
|
struct adc_message* info; /** ADC 'INF' message (broadcasted to everyone joining the hub) */
|
||||||
struct hub_info* hub; /** The hub instance this user belong to */
|
struct hub_info* hub; /** The hub instance this user belong to */
|
||||||
|
@ -119,8 +119,8 @@ typedef size_t (*hfunc_command_arg_reset)(struct plugin_handle*, struct plugin_c
|
|||||||
typedef struct plugin_command_arg_data* (*hfunc_command_arg_next)(struct plugin_handle*, struct plugin_command*, enum plugin_command_arg_type);
|
typedef struct plugin_command_arg_data* (*hfunc_command_arg_next)(struct plugin_handle*, struct plugin_command*, enum plugin_command_arg_type);
|
||||||
|
|
||||||
typedef char* (*hfunc_get_hub_name)(struct plugin_handle*);
|
typedef char* (*hfunc_get_hub_name)(struct plugin_handle*);
|
||||||
typedef char* (*hfunc_get_hub_description)(struct plugin_handle*);
|
|
||||||
typedef void (*hfunc_set_hub_name)(struct plugin_handle*, const char*);
|
typedef void (*hfunc_set_hub_name)(struct plugin_handle*, const char*);
|
||||||
|
typedef char* (*hfunc_get_hub_description)(struct plugin_handle*);
|
||||||
typedef void (*hfunc_set_hub_description)(struct plugin_handle*, const char*);
|
typedef void (*hfunc_set_hub_description)(struct plugin_handle*, const char*);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -137,8 +137,8 @@ struct plugin_hub_funcs
|
|||||||
hfunc_command_arg_reset command_arg_reset;
|
hfunc_command_arg_reset command_arg_reset;
|
||||||
hfunc_command_arg_next command_arg_next;
|
hfunc_command_arg_next command_arg_next;
|
||||||
hfunc_get_hub_name get_name;
|
hfunc_get_hub_name get_name;
|
||||||
hfunc_get_hub_description get_description;
|
|
||||||
hfunc_set_hub_name set_name;
|
hfunc_set_hub_name set_name;
|
||||||
|
hfunc_get_hub_description get_description;
|
||||||
hfunc_set_hub_description set_description;
|
hfunc_set_hub_description set_description;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -73,10 +73,10 @@ struct cfg_tokens* cfg_tokenize(const char* line)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\"':
|
case '"':
|
||||||
if (backslash)
|
if (backslash)
|
||||||
{
|
{
|
||||||
ADD_CHAR('\"');
|
ADD_CHAR('"');
|
||||||
backslash = 0;
|
backslash = 0;
|
||||||
}
|
}
|
||||||
else if (quote)
|
else if (quote)
|
||||||
|
@ -258,7 +258,7 @@ int file_read_lines(const char* file, void* data, file_line_handler_t handler)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse configuaration */
|
/* Parse configuration */
|
||||||
split_data.handler = handler;
|
split_data.handler = handler;
|
||||||
split_data.data = data;
|
split_data.data = data;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user