Browse Source

More exports for windows

merge-experiment
Hoa V. Dinh 7 years ago
parent
commit
c61bb340d8
20 changed files with 128 additions and 11 deletions
  1. +6
    -0
      build-windows/libetpan-config.h
  2. +4
    -0
      src/data-types/mailstream_cfstream.c
  3. +4
    -0
      src/data-types/mailstream_cfstream.h
  4. +8
    -0
      src/low-level/imap/condstore_types.c
  5. +12
    -0
      src/low-level/imap/condstore_types.h
  6. +5
    -0
      src/low-level/imap/mailimap_helper.c
  7. +5
    -0
      src/low-level/imap/mailimap_helper.h
  8. +6
    -0
      src/low-level/imap/mailimap_id_types.c
  9. +9
    -0
      src/low-level/imap/mailimap_id_types.h
  10. +7
    -6
      src/low-level/imap/mailimap_oauth2.c
  11. +0
    -5
      src/low-level/imap/mailimap_sender.h
  12. +8
    -0
      src/low-level/imap/namespace_types.c
  13. +12
    -0
      src/low-level/imap/namespace_types.h
  14. +4
    -0
      src/low-level/imap/qresync_types.c
  15. +8
    -0
      src/low-level/imap/qresync_types.h
  16. +8
    -0
      src/low-level/imap/quota_types.c
  17. +8
    -0
      src/low-level/imap/quota_types.h
  18. +5
    -0
      src/low-level/imap/uidplus_types.c
  19. +7
    -0
      src/low-level/imap/uidplus_types.h
  20. +2
    -0
      src/windows/win_etpan.h

+ 6
- 0
build-windows/libetpan-config.h View File

@ -1,6 +1,12 @@
#ifndef LIBETPAN_CONFIG_H
#define LIBETPAN_CONFIG_H
#ifdef _MSC_VER
#ifndef WIN32
#define WIN32 1
#endif
#endif
#ifdef WIN32
# define PATH_MAX 512


+ 4
- 0
src/data-types/mailstream_cfstream.c View File

@ -51,7 +51,11 @@
#else
#define CFSTREAM_ENABLED_DEFAULT 0
#endif
LIBETPAN_EXPORT
int mailstream_cfstream_enabled = CFSTREAM_ENABLED_DEFAULT;
LIBETPAN_EXPORT
int mailstream_cfstream_voip_enabled = 0;
enum {


+ 4
- 0
src/data-types/mailstream_cfstream.h View File

@ -33,13 +33,17 @@
#define MAILSTREAM_CFSTREAM_H
#include <libetpan/libetpan-config.h>
#include <libetpan/mailstream.h>
#ifdef __cplusplus
extern "C" {
#endif
LIBETPAN_EXPORT
extern int mailstream_cfstream_enabled;
LIBETPAN_EXPORT
extern int mailstream_cfstream_voip_enabled;
enum {


+ 8
- 0
src/low-level/imap/condstore_types.c View File

@ -33,6 +33,7 @@
#include <stdlib.h>
LIBETPAN_EXPORT
struct mailimap_condstore_fetch_mod_resp * mailimap_condstore_fetch_mod_resp_new(uint64_t cs_modseq_value)
{
struct mailimap_condstore_fetch_mod_resp * fetch_data;
@ -46,11 +47,13 @@ struct mailimap_condstore_fetch_mod_resp * mailimap_condstore_fetch_mod_resp_new
return fetch_data;
}
LIBETPAN_EXPORT
void mailimap_condstore_fetch_mod_resp_free(struct mailimap_condstore_fetch_mod_resp * fetch_data)
{
free(fetch_data);
}
LIBETPAN_EXPORT
struct mailimap_condstore_resptextcode * mailimap_condstore_resptextcode_new(int cs_type,
uint64_t cs_modseq_value, struct mailimap_set * cs_modified_set)
{
@ -75,6 +78,7 @@ struct mailimap_condstore_resptextcode * mailimap_condstore_resptextcode_new(int
return resptextcode;
}
LIBETPAN_EXPORT
void mailimap_condstore_resptextcode_free(struct mailimap_condstore_resptextcode * resptextcode)
{
switch (resptextcode->cs_type) {
@ -89,6 +93,7 @@ void mailimap_condstore_resptextcode_free(struct mailimap_condstore_resptextcode
free(resptextcode);
}
LIBETPAN_EXPORT
struct mailimap_condstore_search * mailimap_condstore_search_new(clist * cs_search_result, uint64_t cs_modseq_value)
{
struct mailimap_condstore_search * search_data;
@ -103,6 +108,7 @@ struct mailimap_condstore_search * mailimap_condstore_search_new(clist * cs_sear
return search_data;
}
LIBETPAN_EXPORT
void mailimap_condstore_search_free(struct mailimap_condstore_search * search_data)
{
if (search_data->cs_search_result != NULL) {
@ -112,6 +118,7 @@ void mailimap_condstore_search_free(struct mailimap_condstore_search * search_da
free(search_data);
}
LIBETPAN_EXPORT
struct mailimap_condstore_status_info * mailimap_condstore_status_info_new(uint64_t cs_highestmodseq_value)
{
struct mailimap_condstore_status_info * status_info;
@ -125,6 +132,7 @@ struct mailimap_condstore_status_info * mailimap_condstore_status_info_new(uint6
return status_info;
}
LIBETPAN_EXPORT
void mailimap_condstore_status_info_free(struct mailimap_condstore_status_info * status_info)
{
free(status_info);


+ 12
- 0
src/low-level/imap/condstore_types.h View File

@ -69,17 +69,29 @@ struct mailimap_condstore_status_info {
uint64_t cs_highestmodseq_value;
};
LIBETPAN_EXPORT
struct mailimap_condstore_fetch_mod_resp * mailimap_condstore_fetch_mod_resp_new(uint64_t cs_modseq_value);
LIBETPAN_EXPORT
void mailimap_condstore_fetch_mod_resp_free(struct mailimap_condstore_fetch_mod_resp * fetch_data);
LIBETPAN_EXPORT
struct mailimap_condstore_resptextcode * mailimap_condstore_resptextcode_new(int cs_type,
uint64_t cs_modseq_value, struct mailimap_set * cs_modified_set);
LIBETPAN_EXPORT
void mailimap_condstore_resptextcode_free(struct mailimap_condstore_resptextcode * resptextcode);
LIBETPAN_EXPORT
struct mailimap_condstore_search * mailimap_condstore_search_new(clist * cs_search_result, uint64_t cs_modseq_value);
LIBETPAN_EXPORT
void mailimap_condstore_search_free(struct mailimap_condstore_search * search_data);
LIBETPAN_EXPORT
struct mailimap_condstore_status_info * mailimap_condstore_status_info_new(uint64_t cs_highestmodseq_value);
LIBETPAN_EXPORT
void mailimap_condstore_status_info_free(struct mailimap_condstore_status_info * status_info);
#endif

+ 5
- 0
src/low-level/imap/mailimap_helper.c View File

@ -42,6 +42,7 @@
#include <stdlib.h>
#include "mailimap.h"
LIBETPAN_EXPORT
int mailimap_fetch_rfc822(mailimap * session,
uint32_t msgid, char ** result)
{
@ -101,6 +102,7 @@ err:
return res;
}
LIBETPAN_EXPORT
int mailimap_fetch_rfc822_header(mailimap * session,
uint32_t msgid, char ** result)
{
@ -160,6 +162,7 @@ err:
return res;
}
LIBETPAN_EXPORT
int mailimap_fetch_envelope(mailimap * session,
uint32_t first, uint32_t last,
clist ** result)
@ -187,12 +190,14 @@ int mailimap_fetch_envelope(mailimap * session,
return MAILIMAP_NO_ERROR;
}
LIBETPAN_EXPORT
int mailimap_append_simple(mailimap * session, const char * mailbox,
const char * content, size_t size)
{
return mailimap_append(session, mailbox, NULL, NULL, content, size);
}
LIBETPAN_EXPORT
int mailimap_login_simple(mailimap * session,
const char * userid, const char * password)
{


+ 5
- 0
src/low-level/imap/mailimap_helper.h View File

@ -43,19 +43,24 @@ extern "C" {
#include <libetpan/mailimap_types.h>
LIBETPAN_EXPORT
int mailimap_fetch_rfc822(mailimap * session,
uint32_t msgid, char ** result);
LIBETPAN_EXPORT
int mailimap_fetch_rfc822_header(mailimap * session,
uint32_t msgid, char ** result);
LIBETPAN_EXPORT
int mailimap_fetch_envelope(mailimap * session,
uint32_t first, uint32_t last,
clist ** result);
LIBETPAN_EXPORT
int mailimap_append_simple(mailimap * session, const char * mailbox,
const char * content, size_t size);
LIBETPAN_EXPORT
int mailimap_login_simple(mailimap * session,
const char * userid, const char * password);


+ 6
- 0
src/low-level/imap/mailimap_id_types.c View File

@ -34,6 +34,7 @@
#include "mailimap_types.h"
LIBETPAN_EXPORT
struct mailimap_id_params_list * mailimap_id_params_list_new(clist * items)
{
struct mailimap_id_params_list * list;
@ -47,6 +48,7 @@ struct mailimap_id_params_list * mailimap_id_params_list_new(clist * items)
return list;
}
LIBETPAN_EXPORT
void mailimap_id_params_list_free(struct mailimap_id_params_list * list)
{
clist_foreach(list->idpa_list, (clist_func) mailimap_id_param_free, NULL);
@ -54,6 +56,7 @@ void mailimap_id_params_list_free(struct mailimap_id_params_list * list)
free(list);
}
LIBETPAN_EXPORT
struct mailimap_id_param * mailimap_id_param_new(char * name, char * value)
{
struct mailimap_id_param * param;
@ -68,6 +71,7 @@ struct mailimap_id_param * mailimap_id_param_new(char * name, char * value)
return param;
}
LIBETPAN_EXPORT
void mailimap_id_param_free(struct mailimap_id_param * param)
{
mailimap_string_free(param->idpa_name);
@ -75,6 +79,7 @@ void mailimap_id_param_free(struct mailimap_id_param * param)
free(param);
}
LIBETPAN_EXPORT
struct mailimap_id_params_list * mailimap_id_params_list_new_empty(void)
{
clist * items;
@ -93,6 +98,7 @@ struct mailimap_id_params_list * mailimap_id_params_list_new_empty(void)
return list;
}
LIBETPAN_EXPORT
int mailimap_id_params_list_add_name_value(struct mailimap_id_params_list * list, char * name, char * value)
{
struct mailimap_id_param * param;


+ 9
- 0
src/low-level/imap/mailimap_id_types.h View File

@ -42,7 +42,10 @@ struct mailimap_id_params_list {
clist * /* struct mailimap_id_param */ idpa_list;
};
LIBETPAN_EXPORT
struct mailimap_id_params_list * mailimap_id_params_list_new(clist * items);
LIBETPAN_EXPORT
void mailimap_id_params_list_free(struct mailimap_id_params_list * list);
struct mailimap_id_param {
@ -50,10 +53,16 @@ struct mailimap_id_param {
char * idpa_value;
};
LIBETPAN_EXPORT
struct mailimap_id_param * mailimap_id_param_new(char * name, char * value);
LIBETPAN_EXPORT
void mailimap_id_param_free(struct mailimap_id_param * param);
LIBETPAN_EXPORT
struct mailimap_id_params_list * mailimap_id_params_list_new_empty(void);
LIBETPAN_EXPORT
int mailimap_id_params_list_add_name_value(struct mailimap_id_params_list * list, char * name, char * value);
#ifdef __cplusplus


+ 7
- 6
src/low-level/imap/mailimap_oauth2.c View File

@ -38,9 +38,9 @@
#include "mailimap_parser.h"
#include "mailimap.h"
int mailimap_oauth2_authenticate_send(mailimap * session,
const char * auth_user,
const char * access_token);
static int mailimap_oauth2_authenticate_send(mailimap * session,
const char * auth_user,
const char * access_token);
LIBETPAN_EXPORT
int mailimap_oauth2_authenticate(mailimap * session, const char *auth_user, const char * access_token)
@ -126,9 +126,9 @@ int mailimap_oauth2_authenticate(mailimap * session, const char *auth_user, cons
}
}
int mailimap_oauth2_authenticate_send(mailimap * session,
const char * auth_user,
const char * access_token)
static int mailimap_oauth2_authenticate_send(mailimap * session,
const char * auth_user,
const char * access_token)
{
int r;
char * ptr;
@ -199,6 +199,7 @@ int mailimap_oauth2_authenticate_send(mailimap * session,
return res;
}
LIBETPAN_EXPORT
int mailimap_has_xoauth2(mailimap * session)
{
return mailimap_has_authentication(session, "XOAUTH2");


+ 0
- 5
src/low-level/imap/mailimap_sender.h View File

@ -55,11 +55,6 @@ int mailimap_authenticate_send(mailstream * fd,
int mailimap_authenticate_resp_send(mailstream * fd,
const char * base64);
int mailimap_oauth2_authenticate_send(mailimap * session,
const char * auth_user,
const char * access_token);
int mailimap_noop_send(mailstream * fd);
int mailimap_logout_send(mailstream * fd);


+ 8
- 0
src/low-level/imap/namespace_types.c View File

@ -34,6 +34,7 @@
#include "mailimap_types.h"
#include <stdlib.h>
LIBETPAN_EXPORT
struct mailimap_namespace_response_extension *
mailimap_namespace_response_extension_new(char * name,
clist * values)
@ -50,6 +51,7 @@ mailimap_namespace_response_extension_new(char * name,
return ext;
}
LIBETPAN_EXPORT
void mailimap_namespace_response_extension_free(struct mailimap_namespace_response_extension * ext)
{
clistiter * cur;
@ -65,6 +67,7 @@ void mailimap_namespace_response_extension_free(struct mailimap_namespace_respon
free(ext);
}
LIBETPAN_EXPORT
struct mailimap_namespace_info * mailimap_namespace_info_new(char * prefix, char delimiter,
clist * extensions)
{
@ -81,6 +84,7 @@ struct mailimap_namespace_info * mailimap_namespace_info_new(char * prefix, char
return info;
}
LIBETPAN_EXPORT
void mailimap_namespace_info_free(struct mailimap_namespace_info * info)
{
clistiter * cur;
@ -98,6 +102,7 @@ void mailimap_namespace_info_free(struct mailimap_namespace_info * info)
free(info);
}
LIBETPAN_EXPORT
struct mailimap_namespace_item * mailimap_namespace_item_new(clist * data_list)
{
struct mailimap_namespace_item * item;
@ -111,6 +116,7 @@ struct mailimap_namespace_item * mailimap_namespace_item_new(clist * data_list)
return item;
}
LIBETPAN_EXPORT
void mailimap_namespace_item_free(struct mailimap_namespace_item * item)
{
clistiter * cur;
@ -125,6 +131,7 @@ void mailimap_namespace_item_free(struct mailimap_namespace_item * item)
free(item);
}
LIBETPAN_EXPORT
struct mailimap_namespace_data * mailimap_namespace_data_new(struct mailimap_namespace_item * personal,
struct mailimap_namespace_item * other,
struct mailimap_namespace_item * shared)
@ -142,6 +149,7 @@ struct mailimap_namespace_data * mailimap_namespace_data_new(struct mailimap_nam
return ns;
}
LIBETPAN_EXPORT
void mailimap_namespace_data_free(struct mailimap_namespace_data * ns)
{
if (ns->ns_personal != NULL) {


+ 12
- 0
src/low-level/imap/namespace_types.h View File

@ -44,9 +44,12 @@ struct mailimap_namespace_response_extension {
clist * ns_values; /* != NULL, list of char * */
};
LIBETPAN_EXPORT
struct mailimap_namespace_response_extension *
mailimap_namespace_response_extension_new(char * name,
clist * values);
LIBETPAN_EXPORT
void mailimap_namespace_response_extension_free(struct mailimap_namespace_response_extension * ext);
struct mailimap_namespace_info {
@ -55,15 +58,21 @@ struct mailimap_namespace_info {
clist * ns_extensions; /* can be NULL, list of mailimap_namespace_response_extension */
};
LIBETPAN_EXPORT
struct mailimap_namespace_info * mailimap_namespace_info_new(char * prefix, char delimiter,
clist * extensions);
LIBETPAN_EXPORT
void mailimap_namespace_info_free(struct mailimap_namespace_info * info);
struct mailimap_namespace_item {
clist * ns_data_list; /* != NULL, list of mailimap_namespace_info */
};
LIBETPAN_EXPORT
struct mailimap_namespace_item * mailimap_namespace_item_new(clist * data_list);
LIBETPAN_EXPORT
void mailimap_namespace_item_free(struct mailimap_namespace_item * item);
struct mailimap_namespace_data {
@ -72,10 +81,13 @@ struct mailimap_namespace_data {
struct mailimap_namespace_item * ns_shared; /* can be NULL */
};
LIBETPAN_EXPORT
struct mailimap_namespace_data *
mailimap_namespace_data_new(struct mailimap_namespace_item * personal,
struct mailimap_namespace_item * other,
struct mailimap_namespace_item * shared);
LIBETPAN_EXPORT
void mailimap_namespace_data_free(struct mailimap_namespace_data * ns);
#endif

+ 4
- 0
src/low-level/imap/qresync_types.c View File

@ -35,6 +35,7 @@
#include "mailimap_types.h"
LIBETPAN_EXPORT
struct mailimap_qresync_vanished * mailimap_qresync_vanished_new(int qr_earlier, struct mailimap_set * qr_known_uids)
{
struct mailimap_qresync_vanished * vanished;
@ -49,12 +50,14 @@ struct mailimap_qresync_vanished * mailimap_qresync_vanished_new(int qr_earlier,
return vanished;
}
LIBETPAN_EXPORT
void mailimap_qresync_vanished_free(struct mailimap_qresync_vanished * vanished)
{
mailimap_set_free(vanished->qr_known_uids);
free(vanished);
}
LIBETPAN_EXPORT
struct mailimap_qresync_resptextcode * mailimap_qresync_resptextcode_new(int qr_type)
{
struct mailimap_qresync_resptextcode * resptextcode;
@ -68,6 +71,7 @@ struct mailimap_qresync_resptextcode * mailimap_qresync_resptextcode_new(int qr_
return resptextcode;
}
LIBETPAN_EXPORT
void mailimap_qresync_resptextcode_free(struct mailimap_qresync_resptextcode * resptextcode)
{
free(resptextcode);


+ 8
- 0
src/low-level/imap/qresync_types.h View File

@ -33,6 +33,8 @@
#define QRESYNC_TYPES_H
#include <libetpan/libetpan-config.h>
enum {
MAILIMAP_QRESYNC_TYPE_VANISHED,
MAILIMAP_QRESYNC_TYPE_RESP_TEXT_CODE
@ -51,10 +53,16 @@ struct mailimap_qresync_resptextcode {
int qr_type;
};
LIBETPAN_EXPORT
struct mailimap_qresync_vanished * mailimap_qresync_vanished_new(int qr_earlier, struct mailimap_set * qr_known_uids);
LIBETPAN_EXPORT
void mailimap_qresync_vanished_free(struct mailimap_qresync_vanished * vanished);
LIBETPAN_EXPORT
struct mailimap_qresync_resptextcode * mailimap_qresync_resptextcode_new(int qr_type);
LIBETPAN_EXPORT
void mailimap_qresync_resptextcode_free(struct mailimap_qresync_resptextcode * resptextcode);
#endif

+ 8
- 0
src/low-level/imap/quota_types.c View File

@ -40,6 +40,7 @@
#include <stdlib.h>
#include <string.h>
LIBETPAN_EXPORT
struct mailimap_quota_quota_resource *
mailimap_quota_quota_resource_new(char * resource_name,
uint32_t usage, uint32_t limit)
@ -57,6 +58,7 @@ mailimap_quota_quota_resource_new(char * resource_name,
return res;
}
LIBETPAN_EXPORT
void
mailimap_quota_quota_resource_free(
struct mailimap_quota_quota_resource * res) {
@ -64,6 +66,7 @@ mailimap_quota_quota_resource_free(
free(res);
}
LIBETPAN_EXPORT
struct mailimap_quota_quota_data *
mailimap_quota_quota_data_new(char * quotaroot, clist * quota_list)
{
@ -79,6 +82,7 @@ mailimap_quota_quota_data_new(char * quotaroot, clist * quota_list)
return data;
}
LIBETPAN_EXPORT
void
mailimap_quota_quota_data_free(struct mailimap_quota_quota_data * data)
{
@ -89,6 +93,7 @@ mailimap_quota_quota_data_free(struct mailimap_quota_quota_data * data)
free(data);
}
LIBETPAN_EXPORT
struct mailimap_quota_quotaroot_data *
mailimap_quota_quotaroot_data_new(char * mailbox, clist * quotaroot_list)
{
@ -104,6 +109,7 @@ mailimap_quota_quotaroot_data_new(char * mailbox, clist * quotaroot_list)
return data;
}
LIBETPAN_EXPORT
void
mailimap_quota_quotaroot_data_free(struct mailimap_quota_quotaroot_data * data)
{
@ -114,6 +120,7 @@ mailimap_quota_quotaroot_data_free(struct mailimap_quota_quotaroot_data * data)
free(data);
}
LIBETPAN_EXPORT
struct mailimap_quota_complete_data *
mailimap_quota_complete_data_new(
struct mailimap_quota_quotaroot_data * quotaroot_data,
@ -131,6 +138,7 @@ mailimap_quota_complete_data_new(
return data;
}
LIBETPAN_EXPORT
void
mailimap_quota_complete_data_free(struct mailimap_quota_complete_data * data)
{


+ 8
- 0
src/low-level/imap/quota_types.h View File

@ -47,10 +47,12 @@ struct mailimap_quota_quota_resource {
uint32_t limit;
};
LIBETPAN_EXPORT
struct mailimap_quota_quota_resource *
mailimap_quota_quota_resource_new(char * resource_name,
uint32_t usage, uint32_t limit);
LIBETPAN_EXPORT
void
mailimap_quota_quota_resource_free(struct mailimap_quota_quota_resource * res);
@ -62,9 +64,11 @@ struct mailimap_quota_quota_data {
/* list of (struct mailimap_quota_quota_resource *) */
};
LIBETPAN_EXPORT
struct mailimap_quota_quota_data *
mailimap_quota_quota_data_new(char * quotaroot, clist * quota_list);
LIBETPAN_EXPORT
void
mailimap_quota_quota_data_free(struct mailimap_quota_quota_data * data);
@ -76,9 +80,11 @@ struct mailimap_quota_quotaroot_data {
/* list of (char *) */
};
LIBETPAN_EXPORT
struct mailimap_quota_quotaroot_data *
mailimap_quota_quotaroot_data_new(char * mailbox, clist * quotaroot_list);
LIBETPAN_EXPORT
void
mailimap_quota_quotaroot_data_free(
struct mailimap_quota_quotaroot_data * data);
@ -98,11 +104,13 @@ struct mailimap_quota_complete_data {
/* list of (struct mailimap_quota_quota_data *) */
};
LIBETPAN_EXPORT
struct mailimap_quota_complete_data *
mailimap_quota_complete_data_new(
struct mailimap_quota_quotaroot_data * quotaroot_data,
clist * quota_list);
LIBETPAN_EXPORT
void
mailimap_quota_complete_data_free(struct mailimap_quota_complete_data * data);


+ 5
- 0
src/low-level/imap/uidplus_types.c View File

@ -34,6 +34,7 @@
#include <stdlib.h>
#include "mailimap_extension_types.h"
LIBETPAN_EXPORT
struct mailimap_uidplus_resp_code_apnd * mailimap_uidplus_resp_code_apnd_new(uint32_t uid_uidvalidity, struct mailimap_set * uid_set)
{
struct mailimap_uidplus_resp_code_apnd * resp_code_apnd;
@ -48,6 +49,7 @@ struct mailimap_uidplus_resp_code_apnd * mailimap_uidplus_resp_code_apnd_new(uin
return resp_code_apnd;
}
LIBETPAN_EXPORT
void mailimap_uidplus_resp_code_apnd_free(struct mailimap_uidplus_resp_code_apnd * resp_code_apnd)
{
if (resp_code_apnd->uid_set != NULL)
@ -55,6 +57,7 @@ void mailimap_uidplus_resp_code_apnd_free(struct mailimap_uidplus_resp_code_apnd
free(resp_code_apnd);
}
LIBETPAN_EXPORT
struct mailimap_uidplus_resp_code_copy *
mailimap_uidplus_resp_code_copy_new(uint32_t uid_uidvalidity, struct mailimap_set * uid_source_set, struct mailimap_set * uid_dest_set)
{
@ -71,6 +74,7 @@ mailimap_uidplus_resp_code_copy_new(uint32_t uid_uidvalidity, struct mailimap_se
return resp_code_copy;
}
LIBETPAN_EXPORT
void mailimap_uidplus_resp_code_copy_free(struct mailimap_uidplus_resp_code_copy * resp_code_copy)
{
if (resp_code_copy->uid_dest_set != NULL)
@ -80,6 +84,7 @@ void mailimap_uidplus_resp_code_copy_free(struct mailimap_uidplus_resp_code_copy
free(resp_code_copy);
}
LIBETPAN_EXPORT
void mailimap_uidplus_free(struct mailimap_extension_data * ext_data)
{
switch (ext_data->ext_type) {


+ 7
- 0
src/low-level/imap/uidplus_types.h View File

@ -59,14 +59,21 @@ struct mailimap_uidplus_resp_code_copy {
struct mailimap_set * uid_dest_set;
};
LIBETPAN_EXPORT
struct mailimap_uidplus_resp_code_apnd *
mailimap_uidplus_resp_code_apnd_new(uint32_t uid_uidvalidity, struct mailimap_set * uid_set);
LIBETPAN_EXPORT
void mailimap_uidplus_resp_code_apnd_free(struct mailimap_uidplus_resp_code_apnd * resp_code_apnd);
LIBETPAN_EXPORT
struct mailimap_uidplus_resp_code_copy *
mailimap_uidplus_resp_code_copy_new(uint32_t uid_uidvalidity, struct mailimap_set * uid_source_set, struct mailimap_set * uid_dest_set);
LIBETPAN_EXPORT
void mailimap_uidplus_resp_code_copy_free(struct mailimap_uidplus_resp_code_copy * resp_code_copy);
LIBETPAN_EXPORT
void mailimap_uidplus_free(struct mailimap_extension_data * ext_data);
#ifdef __cplusplus


+ 2
- 0
src/windows/win_etpan.h View File

@ -53,7 +53,9 @@
#define _WIN32_WINNT 0x0501
#include <winsock2.h>
#include <ws2tcpip.h>
#ifndef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS
#endif
#include <windows.h>
#endif


Loading…
Cancel
Save