#include <ctype.h>
#include <amxc/amxc.h>
#include <amxp/amxp_signal.h>
#include <amxd/amxd_common.h>
#include <amxd/amxd_types.h>
#include "amxd_priv.h"
#include "amxd_assert.h"
#include "amxd_object_priv.h"
Go to the source code of this file.
◆ amxd_action_describe_action()
amxd_status_t amxd_action_describe_action |
( |
amxd_action_t |
reason, |
|
|
amxc_var_t *const |
retval, |
|
|
const char * |
description, |
|
|
void * |
priv |
|
) |
| |
Definition at line 142 of file amxd_common.c.
147 amxc_var_t* var_description = NULL;
148 amxc_var_t* data = (amxc_var_t*) priv;
151 when_false(amxc_var_type_of(retval) == AMXC_VAR_ID_HTABLE, exit);
153 var_description = amxc_var_add_new_key(retval, description);
154 amxc_var_copy(var_description, data);
enum _amxd_status amxd_status_t
@ amxd_status_function_not_implemented
static amxd_status_t status
◆ amxd_get_action()
Definition at line 99 of file amxd_common.c.
103 amxc_llist_for_each(it, cb_fns) {
105 if((cb->
reason == reason) &&
106 ((fn == NULL) || (cb->
fn == fn))) {
◆ amxd_name_is_valid()
bool amxd_name_is_valid |
( |
const char * |
name | ) |
|
Definition at line 115 of file amxd_common.c.
117 when_str_empty(name, exit);
118 when_true(isalpha(name[0]) == 0 && name[0] !=
'_', exit);
120 for(
int i = 0; name[i] != 0; i++) {
121 if(isalnum(name[i]) == 0) {
122 if((name[i] !=
'_') && (name[i] !=
'-')) {
◆ amxd_status_string()
Definition at line 134 of file amxd_common.c.
static const char * amxd_error_str[]
◆ amxd_error_str
const char* amxd_error_str[] |
|
static |