Method
ECalComponentBagadd_with_user_data
unstable since: 3.58
Declaration [src]
void
e_cal_component_bag_add_with_user_data (
ECalComponentBag* self,
ECalClient* client,
ECalComponent* comp,
gpointer user_data,
GBoxedCopyFunc copy_user_data,
GBoxedFreeFunc free_user_data
)
Description [src]
Adds a component into the bag. It’s possible to add the same component from the same client multiple times, in which case any previous occurrence is removed.
The component is identified by the client and its uid/rid.
The function also sets the user data member of a newly created
ECalComponentBagItem. The user_data is replaced in an existing
item only if it’s set (non-NULL), otherwise it’s left unchanged. See e_cal_component_bag_item_set_user_data() for more information.
Available since: 3.58
Parameters
client-
Type:
ECalClientAn
ECalClient.The data is owned by the caller of the method. comp-
Type:
ECalComponentAn
ECalComponent.The data is owned by the caller of the method. user_data-
Type:
gpointerCustom user data, or
NULL.The argument can be NULL.The instance takes ownership of the data, and is responsible for freeing it. copy_user_data-
Type:
GBoxedCopyFuncA copy function for the
user_data, orNULL.The argument can be NULL. free_user_data-
Type:
GBoxedFreeFuncA free function for the
user_data, orNULL.The argument can be NULL.