#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <glib.h>
#include "libuau.h"
#include "util.h"
#include "error.h"
#include "parse.h"
#include "parseupdates.h"
Go to the source code of this file.
Functions | |
G_LOCK_DEFINE_STATIC (parse) | |
void | parseUpdates (xmlDocPtr doc, xmlNodePtr node) |
void | parseUpdate (xmlDocPtr doc, xmlNodePtr node, xmlChar *type) |
void | parseSoftware (xmlDocPtr doc, xmlNodePtr node) |
void | parsePackage (xmlDocPtr doc, xmlNodePtr node) |
void | parseMessage (xmlDocPtr doc, xmlNodePtr node) |
void | parseLibupdate (xmlDocPtr doc, xmlNodePtr node) |
void | parseGenericInfo (xmlDocPtr doc, xmlNodePtr node) |
void | parseUpdateInfo (xmlDocPtr doc, xmlNodePtr node, AUpdateType type) |
gboolean | parseQuantData (void **data, char *str, AQuantDataType quantDataType) |
GPtrArray * | luau_parseUpdateFileXML (char *contents) |
Variables | |
GPtrArray * | updates |
AUpdate * | currUpdate |
|
|
|
Definition at line 61 of file parseupdatesxml.c. References ERROR, G_LOCK, G_UNLOCK, luau_parseInterface(), luau_satisfiesInterface(), LUAU_XML_INTERFACE_MAJOR, LUAU_XML_INTERFACE_MINOR, AInterface::major, AInterface::minor, parseUpdates(), and updates. Referenced by luau_net_queryServer(). |
|
Definition at line 176 of file parseupdatesxml.c. References AQuantDataType, currUpdate, AQuantifier::data, AUpdate::date, AQuantifier::dtype, ERROR, AUpdate::fullDesc, AUpdate::id, AUpdate::keywords, luau_parseDate(), luau_parseQuantDataType(), LUAU_QUANT_DATA_INVALID, LUAU_QUANT_FOR, LUAU_QUANT_FROM, LUAU_QUANT_TO, lutil_parse_deleteWhitespace(), lutil_parse_parseSymbolArray(), parseQuantData(), AQuantifier::qtype, AUpdate::quantifiers, and AUpdate::shortDesc. Referenced by parseUpdateInfo(). |
|
Definition at line 422 of file parseupdatesxml.c. References currUpdate, lutil_parse_parseSymbolArray(), and AUpdate::newURL. Referenced by parseUpdateInfo(). |
|
Definition at line 417 of file parseupdatesxml.c. Referenced by parseUpdateInfo(). |
|
Definition at line 304 of file parseupdatesxml.c. References AUpdate::availableFormats, currUpdate, DBUGOUT, ERROR, luau_parsePkgType(), LUAU_UNKNOWN, lutil_parse_deleteWhitespace(), lutil_streq(), APackage::md5sum, APackage::mirrors, nnull_g_free, AUpdate::packages, APackage::size, and APackage::type. Referenced by parseSoftware(). |
|
Definition at line 438 of file parseupdatesxml.c. References ERROR, luau_parseDate(), luau_parseInterface(), LUAU_QUANT_DATA_DATE, LUAU_QUANT_DATA_INTERFACE, LUAU_QUANT_DATA_KEYWORD, and LUAU_QUANT_DATA_VERSION. Referenced by parseGenericInfo(). |
|
Definition at line 274 of file parseupdatesxml.c. References currUpdate, AUpdate::interface, luau_parseInterface(), lutil_parse_deleteWhitespace(), lutil_parse_parseSymbolArray(), AUpdate::newDisplayVersion, and parsePackage(). Referenced by parseUpdateInfo(). |
|
Definition at line 140 of file parseupdatesxml.c. References currUpdate, DBUGOUT, ERROR, AUpdate::keywords, LUAU_LIBUPDATE, LUAU_MESSAGE, LUAU_SOFTWARE, AUpdate::packages, parseUpdateInfo(), AUpdate::quantifiers, AUpdate::type, and updates. Referenced by parseUpdates(). |
|
Definition at line 165 of file parseupdatesxml.c. References LUAU_LIBUPDATE, LUAU_MESSAGE, LUAU_SOFTWARE, parseGenericInfo(), parseLibupdate(), parseMessage(), and parseSoftware(). Referenced by parseUpdate(). |
|
Definition at line 111 of file parseupdatesxml.c. References currUpdate, ERROR, AUpdate::id, AUpdate::newVersion, and parseUpdate(). Referenced by luau_parseUpdateFileXML(). |
|
Definition at line 45 of file parseupdatesxml.c. Referenced by parseGenericInfo(), parseLibupdate(), parsePackage(), parseSoftware(), parseUpdate(), and parseUpdates(). |
|
Definition at line 44 of file parseupdatesxml.c. Referenced by luau_parseUpdateFileXML(), and parseUpdate(). |