19#ifndef _ASTERISK_CALENDAR_H
20#define _ASTERISK_CALENDAR_H
77 void *(* load_calendar)(
void *data);
78 void *(* unref_calendar)(
void *obj);
Asterisk main include file. File version handling, generic pbx functions.
void ast_calendar_unregister(struct ast_calendar_tech *tech)
Unregister a new calendar technology.
void ast_calendar_merge_events(struct ast_calendar *cal, struct ao2_container *new_events)
Add an event to the list of events for a calendar.
void ast_calendar_config_release(void)
Release the calendar config.
@ AST_CALENDAR_BS_BUSY_TENTATIVE
struct ao2_container * ast_calendar_event_container_alloc(void)
Allocate an astobj2 container for ast_calendar_event objects.
void ast_calendar_clear_events(struct ast_calendar *cal)
Remove all events from calendar.
int ast_calendar_register(struct ast_calendar_tech *tech)
Register a new calendar technology.
struct ast_calendar_event * ast_calendar_event_alloc(struct ast_calendar *cal)
Allocate an astobj2 ast_calendar_event object.
struct ast_calendar_event * ast_calendar_unref_event(struct ast_calendar_event *event)
Unreference an ast_calendar_event.
const struct ast_config * ast_calendar_config_acquire(void)
Grab and lock pointer to the calendar config (read only)
Configuration File Parser.
A set of macros to manage forward-linked lists.
#define AST_LIST_HEAD_NOLOCK(name, type)
Defines a structure to be used to hold a list of specified type (with no lock).
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
Asterisk locking-related definitions:
pthread_cond_t ast_cond_t
Asterisk module definitions.
#define AST_DECLARE_STRING_FIELDS(field_list)
Declare the fields needed in a structure.
#define AST_STRING_FIELD(name)
Declare a string field.
struct ast_calendar_attendee * next
const ast_string_field uid
enum ast_calendar_busy_state busy_state
struct ast_calendar * owner
const ast_string_field location
const ast_string_field description
struct ast_channel * notify_chan
const ast_string_field categories
const ast_string_field organizer
struct ast_calendar_event::attendees attendees
const ast_string_field summary
Individual calendaring technology data.
struct ast_calendar_tech::@203 list
struct ast_module_user * user
int(* is_busy)(struct ast_calendar *calendar)
int(* write_event)(struct ast_calendar_event *event)
Asterisk calendar structure.
struct ast_variable * vars
const struct ast_calendar_tech * tech
struct ao2_container * events
int fetch_again_at_reload
const ast_string_field notify_context
const ast_string_field notify_app
unsigned int pending_deletion
const ast_string_field notify_channel
const ast_string_field name
const ast_string_field notify_extension
const ast_string_field notify_appdata
Main Channel structure associated with a channel.
Main dialing structure. Contains global options, channels being dialed, and more!
Structure for variables, used for configurations and for channel variables.