Fix plug-in API header files.

This commit is contained in:
Jan Vidar Krey 2018-11-27 13:20:41 +01:00
parent c383a53105
commit de01486c0f
3 changed files with 11 additions and 9 deletions

View File

@ -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;

View File

@ -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*);

View File

@ -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 */