1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

enhancement and fixes for D binding

This commit is contained in:
Marenz 2011-05-16 00:01:13 +02:00
parent 5709fe41ae
commit 7be4a6452b
2 changed files with 40 additions and 40 deletions

View file

@ -90,12 +90,16 @@ extern (C) MatchVar varTypes[];
/**
* Get the type of variable name.
*/
Bool isRoutingVar(char *name, size_t len);
Bool psyc_isRoutingVar(char *name, size_t len);
alias psyc_isRoutingVar isRoutingVar;
/**
* Get the type of variable name.
*/
Type getVarType(char *name, size_t len);
Type psyc_getVarType(char *name, size_t len);
alias psyc_getVarType getVarType;
/**
* Checks if long keyword string inherits from short keyword string.

View file

@ -35,8 +35,6 @@ enum ParseRC
ERROR_LENGTH = -2,
/// Error in packet.
ERROR = -1,
// Success, used internally.
SUCCESS = 0,
/// Buffer contains insufficient amount of data.
/// Fill another buffer and concatenate it with the end of the current buffer,
/// from the cursor position to the end.
@ -75,10 +73,8 @@ enum ParseRC
/// Content parsing done in one go, value contains the whole content.
/// Used when ROUTING_ONLY is set.
CONTENT = 10,
// Binary value parsing complete, used internally.
COMPLETE = 11,
// Binary value parsing incomplete, used internally.
INCOMPLETE = 12,
/// Finished parsing packet.
COMPLETE = 11
}
/**