bosko lekovic
/
EthToCom_11
nova proba
Diff: dxml.h
- Revision:
- 4:7abcf4543282
- Parent:
- 2:45b351b4fc2a
--- a/dxml.h Wed Apr 08 08:41:16 2020 +0000 +++ b/dxml.h Sat Apr 11 17:11:38 2020 +0000 @@ -1,25 +1,7 @@ /* dxml.h * - * Copyright 2004-2006 Aaron Voisine <aaron@voisine.org> - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: + * softverski modul korigovan 11.04.2020 * - * The above copyright notice and this permission notice shall be included - * in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY - * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, - * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #ifndef _dxml_H @@ -66,7 +48,7 @@ // a wrapper for dxml_parse_fd() that accepts a file name dxml_t dxml_parse_file(const char *file); - + // Wrapper for dxml_parse_str() that accepts a file stream. Reads the entire // stream into memory and then parses it. For xml files, use dxml_parse_file() // or dxml_parse_fd() @@ -95,7 +77,7 @@ // Traverses the dxml sturcture to retrieve a specific subtag. Takes a // variable length list of tag names and indexes. The argument list must be -// terminated by either an index of -1 or an empty string tag name. Example: +// terminated by either an index of -1 or an empty string tag name. Example: // title = dxml_get(library, "shelf", 0, "book", 2, "title", -1); // This retrieves the title of the 3rd book on the 1st shelf of library. // Returns NULL if not found. @@ -111,7 +93,7 @@ // frees the memory allocated for an dxml structure void dxml_free(dxml_t xml); - + // returns parser error message or empty string if none const char *dxml_error(dxml_t xml); @@ -166,3 +148,4 @@ #endif // _dxml_H +