myMPD
Internal API documentation
Loading...
Searching...
No Matches
events.h File Reference

Events helper functions. More...

#include "src/lib/list.h"
Include dependency graph for events.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  t_script_execute_data
 

Enumerations

enum  script_start_events {
  SCRIPT_START_UNKNOWN = -1 , SCRIPT_START_TIMER , SCRIPT_START_TRIGGER , SCRIPT_START_USER ,
  SCRIPT_START_HTTP , SCRIPT_START_EXTERN
}
 

Functions

const char * script_start_event_name (enum script_start_events start_event)
 
enum script_start_events script_start_event_parse (const char *str)
 
struct t_script_execute_datascript_execute_data_new (const char *scriptname, enum script_start_events script_event)
 
void script_execute_data_free (struct t_script_execute_data *data)
 
void script_execute_data_free_void (void *data)
 

Detailed Description

Events helper functions.

Enumeration Type Documentation

◆ script_start_events

Script start events

Function Documentation

◆ script_execute_data_free()

void script_execute_data_free ( struct t_script_execute_data data)

Frees the script_execute_data struct

Parameters
datascript_execute_data struct

◆ script_execute_data_free_void()

void script_execute_data_free_void ( void *  data)

Frees the script_execute_data struct

Parameters
datascript_execute_data struct

◆ script_execute_data_new()

struct t_script_execute_data * script_execute_data_new ( const char *  scriptname,
enum script_start_events  script_event 
)

Creates the script_execute_data struct

Parameters
scriptnamescript name
script_eventscript start event
Returns
newly allocated struct

◆ script_start_event_name()

const char * script_start_event_name ( enum script_start_events  start_event)

Returns the name for the script start event

Parameters
start_eventstart event enum
Returns
start event name or empty if unknown

◆ script_start_event_parse()

enum script_start_events script_start_event_parse ( const char *  str)

Parses the name for the script start event

Parameters
strstring to parse
Returns
script_start_event enum