mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-25 05:11:35 +00:00
410db5d6b0
tweak drawtextfield to understand fonts. now available to menuqc too. provide player and full server info to qc server browsers. allow qc to actually use cfg_save. I've been issuing that on quit for a while now and not noticed that it was getting denied. fix some focus issues with cwindows. tweak splitscreens to display centerprints+scoreboards in more suitable places. harder to glitch out. path command can now displays hashes (in tooltips), which can be useful for creating fmf files. fix q3game crash. fix some qcc issues with hexenc and -O0. fix some qccgui unicode issues, now preserves encoding when saving. provide easy upgrade path for qccx syntax to fteqcc: string[%1] -> string+1 (which is still potentially unsafe (tempstrings), and thus generates a compiler warning). rework xmpp plugin to use cwindows for chats and the buddylist. this should make it more intuitive and thus more userfriendly. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4865 fc73d0e0-1445-4013-8a0c-d673dee63da5
37 lines
1.5 KiB
C
37 lines
1.5 KiB
C
typedef struct xmlparams_s
|
|
{
|
|
char val[256]; //FIXME: make pointer
|
|
struct xmlparams_s *next;
|
|
char name[128]; //FIXME: make variable sized
|
|
} xmlparams_t;
|
|
|
|
typedef struct subtree_s
|
|
{
|
|
char name[64]; //FIXME: make pointer to tail of structure
|
|
char xmlns[64]; //namespace of the element //FIXME: make pointer to tail of structure
|
|
char xmlns_dflt[64]; //default namespace of children //FIXME: make pointer to tail of structure
|
|
char *body;//[2048]; //FIXME: make pointer+variablesized
|
|
|
|
xmlparams_t *params;
|
|
|
|
struct subtree_s *child;
|
|
struct subtree_s *sibling;
|
|
} xmltree_t;
|
|
|
|
|
|
|
|
char *XML_GetParameter(xmltree_t *t, char *paramname, char *def);
|
|
void XML_AddParameter(xmltree_t *t, char *paramname, char *value);
|
|
void XML_AddParameteri(xmltree_t *t, char *paramname, int value);
|
|
xmltree_t *XML_CreateNode(xmltree_t *parent, char *name, char *xmlns, char *body);
|
|
char *XML_Markup(char *s, char *d, int dlen);
|
|
void XML_Unmark(char *s);
|
|
char *XML_GenerateString(xmltree_t *root, qboolean readable);
|
|
xmltree_t *XML_Parse(char *buffer, int *startpos, int maxpos, qboolean headeronly, char *defaultnamespace);
|
|
void XML_Destroy(xmltree_t *t);
|
|
xmltree_t *XML_ChildOfTree(xmltree_t *t, char *name, int childnum);
|
|
xmltree_t *XML_ChildOfTreeNS(xmltree_t *t, char *xmlns, char *name, int childnum);
|
|
char *XML_GetChildBody(xmltree_t *t, char *paramname, char *def);
|
|
void XML_ConPrintTree(xmltree_t *t, char *subconsole, int indent);
|
|
|
|
xmltree_t *XML_FromJSON(xmltree_t *t, char *name, char *json, int *jsonpos, int jsonlen);
|