19 #ifndef _GVMD_MANAGE_SQL_PORT_LISTS_H
20 #define _GVMD_MANAGE_SQL_PORT_LISTS_H
23 #include "manage_sql.h"
33 const char *, array_t *, port_list_t *);
46 port_list_is_predefined (port_list_t);
void migrate_predefined_port_lists()
Migrate old ownerless port lists to the Feed Owner.
Definition: manage_sql_port_lists.c:2503
column_t * port_list_select_columns()
Get select columns.
Definition: manage_sql_port_lists.c:1936
port_protocol_t port_range_iterator_type_int(iterator_t *iterator)
Get the type from a port range iterator.
Definition: manage_sql_port_lists.c:2294
int create_port_list_no_acl(const char *id, const char *name, const char *comment, const char *port_ranges, array_t *ranges, port_list_t *port_list_return)
Create a port list.
Definition: manage_sql_port_lists.c:1359
void update_port_list(port_list_t port_list, const gchar *name, const gchar *comment, array_t *ranges)
Update a port list from an XML file.
Definition: manage_sql_port_lists.c:2557
int restore_port_list(const char *port_list_id)
Try restore a port list.
Definition: manage_sql_port_lists.c:2384
gboolean find_trash_port_list_no_acl(const char *uuid, port_list_t *port_list)
Find a trash port list given a UUID.
Definition: manage_sql_port_lists.c:821
int port_list_updated_in_feed(port_list_t port_list, const gchar *path)
Check if a port list has been updated in the feed.
Definition: manage_sql_port_lists.c:2525
void check_db_port_lists()
Check port lists, for startup.
Definition: manage_sql_port_lists.c:2595
gboolean find_port_list_no_acl(const char *uuid, port_list_t *port_list)
Find a port list given a UUID.
Definition: manage_sql_port_lists.c:765
void inherit_port_lists(user_t user, user_t inheritor)
Change ownership of port lists, for user deletion.
Definition: manage_sql_port_lists.c:2471
const char ** port_list_filter_columns()
Get filter columns.
Definition: manage_sql_port_lists.c:1924
void delete_port_lists_user(user_t user)
Delete all port lists owned by a user.
Definition: manage_sql_port_lists.c:2486
void empty_trashcan_port_lists()
Empty trashcan.
Definition: manage_sql_port_lists.c:2451
int create_port_list_unique(const char *name, const char *comment, const char *port_range, port_list_t *port_list)
Create a port list having a unique name.
Definition: manage_sql_port_lists.c:1121
Iterator column.
Definition: manage_sql.h:217
A generic SQL iterator structure.
Definition: iterator.h:50