Events actionEditSave

From TrillWiki

Jump to: navigation, search

The events_actionEditSave notification is sent when the event has been saved and the data should be updated.

Compatibility: 2.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "events_actionEditSave", event_action_edit_t *data, void *userData);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

Events actionEditSave utilitizes the event_action_edit_t structure.

struct event_action_edit_t {  
 	unsigned int				struct_size; 
 
 	char					*event; 
 
 	void					*action_data; 
 
 	int					event_id; 
 };



event
The event type.
action_data
The data associated with the event.
event_id
The event id associated with the event.


Return Value

Must return data->action_data.

Remarks

The plugin should edit the data returned within this structure and not remalloc a new structure.


See also: events_actionEditCreate, events_actionEditDestroy