|
Libical API Documentation 4.0 UNRELEASED Go to the stable 3.0 documentation
|
A set of functions to handle iCal attachments. More...
Go to the source code of this file.
Typedefs | |
| typedef struct icalattach_impl | icalattach |
| An iCal attach object representing a link to a document object. | |
| typedef void(* | icalattach_free_fn_t) (char *data, void *user_data) |
| Function to be called to free the data of an icalattach object. | |
Functions | |
| unsigned char * | icalattach_get_data (icalattach *attach) |
| Returns the data of the icalattach object. | |
| bool | icalattach_get_is_url (const icalattach *attach) |
| Determines if attach is an URL. | |
| const char * | icalattach_get_url (icalattach *attach) |
| Returns the URL of the icalattach object. | |
| icalattach * | icalattach_new_from_data (const char *data, icalattach_free_fn_t free_fn, void *free_fn_data) |
| Creates new icalattach object from data. | |
| icalattach * | icalattach_new_from_url (const char *url) |
| Creates new icalattach object from a URL. | |
| void | icalattach_ref (icalattach *attach) |
| Increments reference count of the icalattach. | |
| void | icalattach_unref (icalattach *attach) |
| Decrements reference count of the icalattach. | |
A set of functions to handle iCal attachments.
With the ATTACH property, the iCal standard defines a way to associate a document object with a calendar component.
These are represented with icalattach objects in libical. This file contains functions to create and work with these objects.
| typedef struct icalattach_impl icalattach |
An iCal attach object representing a link to a document object.
Represents an association with a document object. icalattach objects are reference counted, meaning that if the last reference to them is removed (with icalattach_unref()), they are destroyed.
| typedef void(* icalattach_free_fn_t) (char *data, void *user_data) |
Function to be called to free the data of an icalattach object.
This function type is used to free the data from an icalattach object created with icalattach_new_from_data(). It is currently not used
| unsigned char * icalattach_get_data | ( | icalattach * | attach | ) |
Returns the data of the icalattach object.
| attach | The object from which to return the data |
Returns the URL of the icalattach object.
| bool icalattach_get_is_url | ( | const icalattach * | attach | ) |
Determines if attach is an URL.
| attach | the icalattach object to check |
Errors if attach is NULL.
| const char * icalattach_get_url | ( | icalattach * | attach | ) |
Returns the URL of the icalattach object.
| attach | The object from which to return the URL |
Returns the URL of the icalattach object.
| icalattach * icalattach_new_from_data | ( | const char * | data, |
| icalattach_free_fn_t | free_fn, | ||
| void * | free_fn_data ) |
Creates new icalattach object from data.
| data | The data to create the icalattach from |
| free_fn | The function to free the data |
| free_fn_data | Data to pass to the free_fn |
| icalattach * icalattach_new_from_url | ( | const char * | url | ) |
Creates new icalattach object from a URL.
| url | The URL to create the object from |
| void icalattach_ref | ( | icalattach * | attach | ) |
Increments reference count of the icalattach.
| attach | The object to increase the reference count of |
| void icalattach_unref | ( | icalattach * | attach | ) |
Decrements reference count of the icalattach.
| attach | The object to decrease the reference count of |
Decreases the reference count of attach. If this was the last user of the object, it is freed.