24 #define core_anum_t nntp_anum_t
30 #define core_groupdesc nntp_groupdesc
36 #define core_grouplabel nntp_grouplabel
180 #define CORE_ANUM_T_MAX NNTP_ANUM_T_MAX
183 #define CORE_TIME_T_MAX ULONG_MAX
188 #define CORE_GROUP_FLAG_ASCII NNTP_GROUP_FLAG_ASCII
194 #define CORE_HE_FLAG_OVER 1U
199 #define CORE_SIG_FLAG_SEPARATOR 0x01U
200 #define CORE_SIG_FLAG_INVALID 0x02U
201 #define CORE_SIG_FLAG_NOTASCII 0x04U
202 #define CORE_SIG_FLAG_LENGTH 0x08U
207 #define CORE_CL_INVALID 0U
208 #define CORE_CL_SHA1 1U
209 #define CORE_CL_SHA256 2U
void core_mutex_lock(void)
Lock mutex for data object (exported for UI)
struct core_article_header * header
const char * core_suggest_pathname(void)
Suggest pathname to save something to a file (exported for UI)
int core_export_group_states(size_t, struct core_groupstate *)
Store states of subscribed groups (exported for UI)
#define core_groupdesc
Group descriptor structure.
void core_create_hierarchy_from_overview(struct core_groupstate *, struct core_range *, const char *)
Create article hierarchy from header overview (exported for UI)
const char * core_convert_pathname_to_locale(const char *)
Convert pathname to codeset of locale (exported for UI)
const char * core_convert_canonical_to_posix(const char *, int, int)
Convert from canonical (RFC 822) to local (POSIX) form.
int core_get_group_list(unsigned int)
Get list of available newsgroups (exported for UI)
core_hierarchy_action
Actions that the article hierarchy manager can handle.
#define core_anum_t
Article number data type (value zero is always reserved)
const char * core_convert_posix_to_canonical(const char *)
Convert from local (POSIX) to canonical (RFC 822) form.
unsigned long int core_time_t
Time in seconds since the epoche (in terms of POSIX.1)
int core_get_subscription_proposals(unsigned int)
Get subscription proposals (exported for UI)
const char * core_get_homedir(void)
Get home directory of user (exported for UI)
struct core_hierarchy_element ** child
Article range linked list element.
int core_reset_group_states(unsigned int)
Reset states of subscribed groups (exported for UI)
int core_get_distribution(const char **, const char **)
Get distribution suggestions (exported for UI)
int core_hierarchy_manager(struct core_hierarchy_element **, enum core_hierarchy_action, core_anum_t,...)
Manage article hierarchy in memory (exported for UI)
int core_unsubscribe_group(size_t *, struct core_groupstate **, size_t *)
Remove group from list (exported for UI)
void core_free(void *)
Free an object allocated by core (exported for UI)
const char * core_get_cancel_lock(unsigned int, const char *)
Create Cancel-Lock for Message-ID (exported for UI)
void core_mark_as_read(struct core_groupstate *, core_anum_t)
Mark article as read (exported for UI)
int core_post_article(const char *, unsigned int)
Post article (exported for UI)
int core_init(void)
Initialize core (exported for UI)
void core_exit(void)
Shutdown core (exported for UI)
int core_check_thread_ui(void)
Check whether code is running in UI thread (exported for UI)
int core_get_subscribed_group_info(const size_t *, struct core_groupstate **, unsigned int)
Get information about subscribed groups (exported for UI)
void core_tmpfile_delete(const char *)
Delete temporary file (exported for UI)
int core_sort_group_list(void)
Alphabetically sort group list (exported for UI)
int core_get_motd(unsigned int)
Get message of the day (exported for UI)
int core_subscribe_group(const char *)
Store group subscription (exported for UI)
void core_mutex_unlock(void)
Unlock mutex for data object (exported for UI)
int core_get_group_labels(unsigned int)
Get list of newsgroup labels (exported for UI)
struct core_hierarchy_element * parent
const char * core_get_msgid(const char *)
Get globally unique Message-ID (exported for UI)
void core_destroy_subscribed_group_info(struct core_groupdesc **)
Destructor for subscribed group information (exported for UI)
void core_destroy_subscribed_group_states(size_t *, struct core_groupstate **)
Destructor for subscribed group states (exported for UI)
int core_check_file_exist(const char *)
Check wheter file exists (exported for UI)
Article header fields supported by core.
Node in article hierarchy.
void core_mark_as_unread(struct core_groupstate *, core_anum_t)
Mark article as unread (exported for UI)
struct core_data data
Global data object (shared by all threads)
const char * core_get_datetime(int)
Get current date and time in RFC 5322 format (exported for UI)
void core_destroy_entity_header(struct core_article_header **)
Destructor for MIME multipart entity header object (exported for UI)
int core_get_article_body(const core_anum_t *, unsigned int)
Get article body (exported for UI)
const char * core_get_cancel_key(unsigned int, const char *)
Create Cancel-Key for Message-ID (exported for UI)
int core_get_article_by_mid(const char *, unsigned int)
Get complete article by Message-ID (exported for UI)
int core_check_already_read(struct core_groupstate *, struct core_hierarchy_element *)
Check whether article was alread read (exported for UI)
const char * core_get_signature(unsigned int *)
Get signature for outgoing messages (exported for UI)
const char * core_tmpfile_create(void)
Create temporary file (exported for UI)
int core_get_overview(struct core_range *, unsigned int)
Get article header overview (exported for UI)
int core_get_article_header(const core_anum_t *, unsigned int)
Get article header (exported for UI)
int core_update_subscribed_group_states(size_t *, struct core_groupstate **, size_t *)
Get states of subscribed groups (exported for UI)
const char ** core_extract_groups(const char *)
Extract groups from 'Newsgroups' header field (exported for UI)
void core_disconnect(void)
Close nexus (exported for UI)
int core_get_article(const core_anum_t *, unsigned int)
Get complete article (exported for UI)
const char * core_entity_parser(const char *, size_t, struct core_article_header **, size_t *)
Parse header of MIME multipart entity (exported for UI)
int core_save_to_file(const char *, const char *)
Save string to text file (exported for UI)
Structure to transfer data between core and UI threads.
const char * core_get_introduction(const char *, const char *)
Get introduction line for citation (exported for UI)
int core_set_group(const char *, unsigned int)
Set current group (exported for UI)
Generated at 2024-04-27 using