Macros | Functions
group.c File Reference

Handling of subscribed groups and already viewed articles. More...

Go to the source code of this file.

Macros

#define MAIN_ERR_PREFIX   "GROUP: "
 Message prefix for GROUPHANDLING module.
 
#define GROUP_PERM   (posix_mode_t) (POSIX_S_IRUSR | POSIX_S_IWUSR)
 Permissions for group file.
 

Functions

void group_init (void)
 Initialize group handling. More...
 
void group_exit (void)
 Shutdown group handling. More...
 
int group_article_range_constructor (struct core_range **range, core_anum_t start, core_anum_t end, struct core_range *next)
 Article range constructor. More...
 
void group_article_range_destructor (struct core_range **list)
 Destructor for linked list of article ranges. More...
 
void group_destroy_list (size_t *num, struct core_groupstate **grouplist)
 Destroy list of subscribed groups. More...
 
int group_get_list (size_t *num, struct core_groupstate **grouplist)
 Get list with subscribed groups. More...
 
int group_set_list (size_t num, struct core_groupstate *grouplist)
 Store list with subscribed groups. More...
 
int group_sort_list (void)
 Alphabetically sort list with subscribed groups. More...
 
int group_add (struct core_groupstate *group)
 Add subscribed group. More...
 
int group_reset_states (void)
 Delete group states. More...
 

Detailed Description

Handling of subscribed groups and already viewed articles.

Copyright (c) 2012-2020 by the developers. See the LICENSE file for details.

If nothing else is specified, functions return zero to indicate success and a negative value to indicate an error.

Definition in file group.c.


Generated at 2024-04-27 using  doxygen