X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Flibcitadel.h;h=955918b94db4dec52b03f0217ee4f707d7f6ddeb;hb=71f06c155fe24e273437baa9a71156035c68a877;hp=b035a474454276b9e379772c5b4ebb73b4ac1089;hpb=48537c783a8d9769e005719f1268f83b1598e09e;p=citadel.git diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index b035a4744..955918b94 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -1,7 +1,7 @@ /* * Header file for libcitadel * - * Copyright (c) 1987-2018 by the citadel.org team + * Copyright (c) 1987-2021 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -26,7 +26,7 @@ #include #include -#define LIBCITADEL_VERSION_NUMBER 924 +#define LIBCITADEL_VERSION_NUMBER 932 /* * Here's a bunch of stupid magic to make the MIME parser portable. @@ -120,7 +120,6 @@ extern const char *StrBufNOTNULL; char *libcitadel_version_string(void); int libcitadel_version_number(void); -void StartLibCitadel(size_t basesize); void ShutDownLibCitadel(void); /* @@ -440,6 +439,20 @@ char *html_to_ascii(const char *inputmsg, int msglen, int screenwidth); void LoadEntityList(char *FileName); +typedef struct { + void *the_elements; + size_t element_size; + int num_elements; + int num_alloc; +} Array; + +Array *array_new(size_t element_size); +void array_free(Array *arr); +void array_append(Array *arr, void *new_element); +void *array_get_element_at(Array *arr, int index); +int array_len(Array *arr); +void array_sort(Array *arr, int (*compar)(const void *, const void *)); + /* vCard stuff */