40 if (
user->parking_space == *target) {
110 ast_debug(4,
"Notification of state change to metermaids %d@%s\n to state '%s'\n",
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
#define ao2_callback(c, flags, cb_fn, arg)
ao2_callback() is a generic function that applies cb_fn() to all objects in a container,...
int ast_devstate_prov_del(const char *label)
Remove device state provider.
int ast_devstate_changed(enum ast_device_state state, enum ast_devstate_cache cachable, const char *fmt,...)
Tells Asterisk the State for Device is changed.
const char * ast_devstate2str(enum ast_device_state devstate) attribute_pure
Convert device state to text string for output.
int ast_devstate_prov_add(const char *label, ast_devstate_prov_cb_type callback)
Add device state provider.
ast_device_state
Device States.
char * strsep(char **str, const char *delims)
Support for logging to various files, console and syslog Configuration in file logger....
#define ast_debug(level,...)
Log a DEBUG message.
void parking_notify_metermaids(int exten, const char *context, enum ast_device_state state)
Notify metermaids that we've changed an extension.
int load_parking_devstate(void)
Register Parking devstate handler.
static enum ast_device_state metermaidstate(const char *data)
void unload_parking_devstate(void)
Unregister Parking devstate handler.
static int retrieve_parked_user_targeted(void *obj, void *arg, int flags)
static int parking_lot_search_context_extension_inuse(void *obj, void *arg, int flags)
Call Parking Resource Internal API.
struct ao2_container * get_parking_lot_container(void)
Get a pointer to the parking lot container for purposes such as iteration.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
const ast_string_field parking_con
struct parking_lot_cfg * cfg
struct ao2_container * parked_users
structure to hold users read from users.conf
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.