mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
modifier, psyc-mode fix
This commit is contained in:
parent
a2e54dfdd0
commit
545ee184a1
4 changed files with 14 additions and 3 deletions
|
@ -198,6 +198,14 @@ typedef struct {
|
|||
char oper;
|
||||
} PsycModifier;
|
||||
|
||||
#define PSYC_MODIFIER(op, nam, val, flg) \
|
||||
(PsycModifier) { \
|
||||
.oper = op, \
|
||||
.name = nam, \
|
||||
.value = val, \
|
||||
.flag = flg, \
|
||||
}
|
||||
|
||||
/** Entity or routing header */
|
||||
typedef struct {
|
||||
size_t lines;
|
||||
|
|
|
@ -51,6 +51,9 @@ static inline
|
|||
PsycRenderRC
|
||||
psyc_render (PsycPacket *packet, char *buffer, size_t buflen);
|
||||
|
||||
size_t
|
||||
psyc_render_modifier (PsycModifier *mod, char *buffer);
|
||||
|
||||
PsycRenderRC
|
||||
psyc_render_elem (PsycElem *elem, char *buffer, size_t buflen);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue