mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
psyc_method_family()
This commit is contained in:
parent
d0b3b85924
commit
efd58428a9
4 changed files with 104 additions and 3 deletions
|
@ -67,6 +67,21 @@ typedef enum {
|
|||
PSYC_STATE_RESYNC = '?',
|
||||
} PsycStateOp;
|
||||
|
||||
typedef enum PsycMethod {
|
||||
PSYC_METHOD_UNKNOWN,
|
||||
PSYC_METHOD_DATA,
|
||||
PSYC_METHOD_ECHO,
|
||||
PSYC_METHOD_ERROR,
|
||||
PSYC_METHOD_FAILURE,
|
||||
PSYC_METHOD_INFO,
|
||||
PSYC_METHOD_MESSAGE,
|
||||
PSYC_METHOD_MESSAGE_ECHO,
|
||||
PSYC_METHOD_NOTICE,
|
||||
PSYC_METHOD_REQUEST,
|
||||
PSYC_METHOD_STATUS,
|
||||
PSYC_METHOD_WARNING,
|
||||
} PsycMethod;
|
||||
|
||||
/** Structure for a modifier. */
|
||||
typedef struct {
|
||||
char oper;
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#ifndef PSYC_VARIABLE_H
|
||||
#define PSYC_VARIABLE_H
|
||||
|
||||
/**
|
||||
* @file psyc/variable.h
|
||||
*/
|
||||
|
||||
#ifndef PSYC_VARIABLE_H
|
||||
#define PSYC_VARIABLE_H
|
||||
|
||||
#include "packet.h"
|
||||
|
||||
/// Routing variables in alphabetical order.
|
||||
extern const PsycString psyc_routing_vars[];
|
||||
|
||||
|
@ -36,4 +38,7 @@ psyc_var_is_list (const char *name, size_t len)
|
|||
? PSYC_FALSE : PSYC_TRUE;
|
||||
}
|
||||
|
||||
PsycMethod
|
||||
psyc_method_family (char *method, size_t methodlen, unsigned int *flag);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue