Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
DeadProp.h
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: DeadProp.h 4915 2021-12-01 18:26:55Z wini $
15 *
16 * COPYRIGHT: Real Time Logic, 2008
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 *
38 */
39#ifndef _DeadProp_h
40#define _DeadProp_h
41
42#include <SimpleXml.h>
43
44typedef struct DeadProp
45{
46 SXmlRoot op;
47 SXmlRoot* nr;
48 U8* xmlRootBuf;
49 SXmlNode* oprop;
50 SXmlNode** nprops;
51 SXmlNode* oPropIter; /* Used by getFirstPropName & getNextPropName */
52 IoIntf* io;
53 AllocatorIntf* alloc;
54 char* propFileName;
55 U16 npropsCursor;
56 U16 npropsLen;
57 BaBool noPropFile;
58 BaBool elemRemoved;
59} DeadProp;
60
61
62void DeadProp_constructor(DeadProp* o, IoIntf* io, AllocatorIntf* alloc);
63char* DeadProp_fname2PropFName(AllocatorIntf* alloc, const char* filename);
64int DeadProp_mkPropDir(IoIntf* io, char* propFileName);
65U8* DeadProp_readFile(IoIntf* io, AllocatorIntf* alloc,
66 const char* name, size_t* size);
67int DeadProp_setFile(DeadProp* o, char* propFileName);
68int DeadProp_save(DeadProp* o);
69SXmlNode* DeadProp_getProp(DeadProp* o, const char* ns, const char* name);
70int DeadProp_setProp(DeadProp* o, SXmlNode* nn, SXmlRoot* nr);
71int DeadProp_removeProp(DeadProp* o, SXmlNode* nn, SXmlRoot* nr);
72SXmlNode* DeadProp_getFirstProp(DeadProp* o);
73SXmlNode* DeadProp_getNextProp(DeadProp* o);
74void DeadProp_destructor(DeadProp* o);
75#define DeadProp_getRoot(o) (&(o)->op)
76
77#endif
uint16_t U16
Unsigned 16-bit integer.
Definition: GenPrimT.h:91
uint8_t U8
Unsigned 8-bit integer.
Definition: GenPrimT.h:89
U8 BaBool
Boolean stored in an unsigned byte; FALSE is zero and TRUE is one.
Definition: GenPrimT.h:118
Memory allocation and deallocation Interface class.
Definition: AllocatorIntf.h:98
The IoIntf class specifies an abstract file API, implementations include ZipIo, DiskIo,...
Definition: IoIntf.h:482