Fix plug-in API header files.

此提交包含在:
Jan Vidar Krey
2018-11-27 13:20:41 +01:00
父節點 c383a53105
當前提交 de01486c0f
共有 3 個檔案被更改,包括 11 行新增9 行删除

查看文件

@@ -35,6 +35,16 @@ struct plugin_command
struct linked_list* args; struct linked_list* args;
}; };
enum plugin_command_arg_type
{
plugin_cmd_arg_type_integer,
plugin_cmd_arg_type_string,
plugin_cmd_arg_type_user,
plugin_cmd_arg_type_address,
plugin_cmd_arg_type_range,
plugin_cmd_arg_type_credentials,
};
struct plugin_command_arg_data struct plugin_command_arg_data
{ {
enum plugin_command_arg_type type; enum plugin_command_arg_type type;

查看文件

@@ -28,6 +28,7 @@
#include "util/credentials.h" #include "util/credentials.h"
#include "network/ipcalc.h" #include "network/ipcalc.h"
#include "plugin_api/types.h" #include "plugin_api/types.h"
#include "plugin_api/command_api.h"
typedef void (*on_connection_accepted_t)(struct plugin_handle*, struct ip_addr_encap*); typedef void (*on_connection_accepted_t)(struct plugin_handle*, struct ip_addr_encap*);
typedef void (*on_connection_refused_t)(struct plugin_handle*, struct ip_addr_encap*); typedef void (*on_connection_refused_t)(struct plugin_handle*, struct ip_addr_encap*);

查看文件

@@ -93,15 +93,6 @@ struct ban_info
time_t expiry; /* Time when the ban record expires */ time_t expiry; /* Time when the ban record expires */
}; };
enum plugin_command_arg_type
{
plugin_cmd_arg_type_integer,
plugin_cmd_arg_type_string,
plugin_cmd_arg_type_user,
plugin_cmd_arg_type_address,
plugin_cmd_arg_type_range,
plugin_cmd_arg_type_credentials,
};
#endif /* HAVE_UHUB_PLUGIN_TYPES_H */ #endif /* HAVE_UHUB_PLUGIN_TYPES_H */