mirror of
https://github.com/lexborisov/Modest
synced 2024-11-22 13:51:39 +03:00
49 lines
1.7 KiB
C
49 lines
1.7 KiB
C
/*
|
|
Copyright (C) 2016 Alexander Borisov
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
This library 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
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with this library; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
Author: lex.borisov@gmail.com (Alexander Borisov)
|
|
*/
|
|
|
|
#ifndef MyHTML_SERIALIZATION_H
|
|
#define MyHTML_SERIALIZATION_H
|
|
#pragma once
|
|
|
|
#include <myhtml/myosi.h>
|
|
#include <myhtml/mystring.h>
|
|
#include <myhtml/tree.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// the serialization functions
|
|
bool myhtml_serialization_tree_buffer(myhtml_tree_node_t* scope_node, myhtml_string_raw_t* str);
|
|
bool myhtml_serialization_node_buffer(myhtml_tree_node_t* node, myhtml_string_raw_t* str);
|
|
bool myhtml_serialization_tree_callback(myhtml_tree_node_t* scope_node, myhtml_callback_serialize_f callback, void* ptr);
|
|
bool myhtml_serialization_node_callback(myhtml_tree_node_t* node, myhtml_callback_serialize_f callback, void* ptr);
|
|
|
|
// in versuon 1.0.3 this is in public api.
|
|
// Need to set deprecated?
|
|
bool myhtml_serialization(myhtml_tree_node_t* scope_node, myhtml_string_raw_t* str);
|
|
bool myhtml_serialization_node(myhtml_tree_node_t* node, myhtml_string_raw_t* str);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* MyHTML_SERIALIZATION_H */
|