libamxo  4.3.4
Object Definition Language (ODL) parsing
amxo_connections.c File Reference
#include "amxo_parser_priv.h"
#include "amxo_parser_hooks_priv.h"
#include "amxo_parser.tab.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

int amxo_connection_add (UNUSED amxo_parser_t *parser, int fd, amxo_fd_read_t reader, const char *uri, amxo_con_type_t type, void *priv)
 
int amxo_connection_wait_write (UNUSED amxo_parser_t *parser, int fd, amxo_fd_cb_t can_write_cb)
 
int amxo_connection_remove (UNUSED amxo_parser_t *parser, int fd)
 
amxo_connection_tamxo_connection_get (UNUSED amxo_parser_t *parser, int fd)
 
amxo_connection_tamxo_connection_get_first (UNUSED amxo_parser_t *parser, amxo_con_type_t type)
 
amxo_connection_tamxo_connection_get_next (UNUSED amxo_parser_t *parser, amxo_connection_t *con, amxo_con_type_t type)
 
int amxo_connection_set_el_data (UNUSED amxo_parser_t *parser, int fd, void *el_data)
 
amxc_llist_t * amxo_parser_get_connections (UNUSED amxo_parser_t *parser)
 
amxc_llist_t * amxo_parser_get_listeners (UNUSED amxo_parser_t *parser)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 56 of file amxo_connections.c.

Function Documentation

◆ amxo_connection_add()

int amxo_connection_add ( UNUSED amxo_parser_t parser,
int  fd,
amxo_fd_read_t  reader,
const char *  uri,
amxo_con_type_t  type,
void *  priv 
)

Definition at line 63 of file amxo_connections.c.

68  {
69 
70  return amxp_connection_add(fd, reader, uri, type, priv);
71 }

◆ amxo_connection_get()

amxo_connection_t* amxo_connection_get ( UNUSED amxo_parser_t parser,
int  fd 
)

Definition at line 84 of file amxo_connections.c.

85  {
86  return amxp_connection_get(fd);
87 }

◆ amxo_connection_get_first()

amxo_connection_t* amxo_connection_get_first ( UNUSED amxo_parser_t parser,
amxo_con_type_t  type 
)

Definition at line 89 of file amxo_connections.c.

90  {
91  return amxp_connection_get_first(type);
92 }

◆ amxo_connection_get_next()

amxo_connection_t* amxo_connection_get_next ( UNUSED amxo_parser_t parser,
amxo_connection_t con,
amxo_con_type_t  type 
)

Definition at line 94 of file amxo_connections.c.

96  {
97  return amxp_connection_get_next(con, type);
98 }

◆ amxo_connection_remove()

int amxo_connection_remove ( UNUSED amxo_parser_t parser,
int  fd 
)

Definition at line 79 of file amxo_connections.c.

80  {
81  return amxp_connection_remove(fd);
82 }

◆ amxo_connection_set_el_data()

int amxo_connection_set_el_data ( UNUSED amxo_parser_t parser,
int  fd,
void *  el_data 
)

Definition at line 100 of file amxo_connections.c.

102  {
103  return amxp_connection_set_el_data(fd, el_data);
104 }

◆ amxo_connection_wait_write()

int amxo_connection_wait_write ( UNUSED amxo_parser_t parser,
int  fd,
amxo_fd_cb_t  can_write_cb 
)

Definition at line 73 of file amxo_connections.c.

75  {
76  return amxp_connection_wait_write(fd, can_write_cb);
77 }

◆ amxo_parser_get_connections()

amxc_llist_t* amxo_parser_get_connections ( UNUSED amxo_parser_t parser)

Definition at line 106 of file amxo_connections.c.

106  {
107  return amxp_connection_get_connections();
108 }

◆ amxo_parser_get_listeners()

amxc_llist_t* amxo_parser_get_listeners ( UNUSED amxo_parser_t parser)

Definition at line 110 of file amxo_connections.c.

110  {
111  return amxp_connection_get_listeners();
112 }