Initial commit of Moonlight Embedded port to C

This commit is contained in:
Iwan Timmer
2015-04-28 20:58:20 +02:00
commit 7aab4013e4
18 changed files with 1740 additions and 0 deletions

29
src/xml.h Normal file
View File

@@ -0,0 +1,29 @@
/*
* This file is part of Moonlight Embedded.
*
* Copyright (C) 2015 Iwan Timmer
*
* Moonlight is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Moonlight is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Moonlight; if not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
struct app_list {
char* name;
int id;
struct app_list* next;
};
int xml_search(char* data, size_t len, char* node, char** result);
struct app_list* xml_applist(char* data, size_t len);