14 struct global_worklist_list;
39 #define SPECLIST_TAG global_worklist
40 #define SPECLIST_TYPE struct global_worklist
44 #define global_worklists_iterate_all(pgwl) \
45 if (client.worklists) { \
46 TYPED_LIST_ITERATE(struct global_worklist, client.worklists, pgwl)
47 #define global_worklists_iterate_all_end \
52 #define global_worklists_iterate(pgwl) \
53 global_worklists_iterate_all(pgwl) \
55 if (global_worklist_is_valid(pgwl)) {
56 #define global_worklists_iterate_end \
59 global_worklists_iterate_all_end;
struct global_worklist * global_worklist_by_id(int id)
Returns the global worklist corresponding to this id.
void global_worklists_init()
Initialize the client global worklists.
bool global_worklist_set(struct global_worklist *pgwl, const struct worklist *pwl)
Sets the worklist.
void global_worklists_build()
Check if the global worklists are valid or not for the ruleset.
int global_worklist_id(const struct global_worklist *pgwl)
Returns the id of the global worklist.
void global_worklists_unbuild()
Convert the universal pointers to strings to work out-ruleset.
void global_worklists_free()
Free the client global worklists.
bool global_worklist_is_valid(const struct global_worklist *pgwl)
Returns TRUE if this global worklist is valid.
void global_worklist_destroy(struct global_worklist *pgwl)
Destroys a glocal worklist.
void global_worklists_load(struct section_file *file)
Load all global worklist from a section file.
struct global_worklist * global_worklist_new(const char *name)
Creates a new global worklist form a normal worklist.
const char * global_worklist_name(const struct global_worklist *pgwl)
Return the name of the global worklist.
const struct worklist * global_worklist_get(const struct global_worklist *pgwl)
Returns the worklist of this global worklist or nullptr if it's not valid.
void global_worklists_save(struct section_file *file)
Save all global worklist into a section file.
void global_worklist_set_name(struct global_worklist *pgwl, const char *name)
Sets the name of this global worklist.