Libical API Documentation 3.0

icalattachimpl.h
1/*======================================================================
2 FILE: icalattachimpl.h
3 CREATOR: acampi 28 May 02
4
5 (C) COPYRIGHT 2000, Andrea Campi <a.campi@inet.it>
6
7 This library is free software; you can redistribute it and/or modify
8 it under the terms of either:
9
10 The LGPL as published by the Free Software Foundation, version
11 2.1, available at: https://www.gnu.org/licenses/lgpl-2.1.html
12
13 Or:
14
15 The Mozilla Public License Version 2.0. You may obtain a copy of
16 the License at https://www.mozilla.org/MPL/
17======================================================================*/
18
19#ifndef ICALATTACHIMPL_H
20#define ICALATTACHIMPL_H
21
22#include "icalattach.h"
23
24/* Private structure for ATTACH values */
25 struct icalattach_impl
26{
27 /* Reference count */
28 int refcount;
29
30 union
31 {
32 /* URL attachment data */
33 struct
34 {
35 char *url;
36 } url;
37
38 /* Inline data */
39 struct
40 {
41 char *data;
42 icalattach_free_fn_t free_fn;
43 void *free_fn_data;
44 } data;
45 } u;
46
47 /* TRUE if URL, FALSE if inline data */
48 unsigned int is_url:1;
49};
50
51#endif
icalattach.h
A set of functions to handle iCal attachments.
icalattach_free_fn_t
void(* icalattach_free_fn_t)(char *data, void *user_data)
Function to be called to free the data of an icalattach object.
Definition: icalattach.h:54
icalattach_impl
Definition: icalattachimpl.h:26