~ubuntu-branches/ubuntu/saucy/osptoolkit/saucy

« back to all changes in this revision

Viewing changes to include/osp/ospxmlattr.h

  • Committer: Bazaar Package Importer
  • Author(s): TransNexus, Inc.
  • Date: 2007-12-30 20:37:26 UTC
  • Revision ID: james.westby@ubuntu.com-20071230203726-dysah2e93yqd3vbp
Tags: upstream-3.4.2
ImportĀ upstreamĀ versionĀ 3.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**************************************************************************
 
2
*** COPYRIGHT (c) 2002 by TransNexus, Inc.                              ***
 
3
***                                                                     ***
 
4
*** This software is property of TransNexus, Inc.                       ***
 
5
*** This software is freely available under license from TransNexus.    ***
 
6
*** The license terms and conditions for free use of this software by   ***
 
7
*** third parties are defined in the OSP Toolkit Software License       ***
 
8
*** Agreement (LICENSE.txt).  Any use of this software by third         ***
 
9
*** parties, which does not comply with the terms and conditions of the ***
 
10
*** OSP Toolkit Software License Agreement is prohibited without        ***
 
11
*** the prior, express, written consent of TransNexus, Inc.             ***
 
12
***                                                                     ***
 
13
*** Thank you for using the OSP ToolKit(TM).  Please report any bugs,   ***
 
14
*** suggestions or feedback to support@transnexus.com                   ***
 
15
***                                                                     ***
 
16
**************************************************************************/
 
17
 
 
18
 
 
19
 
 
20
 
 
21
 
 
22
 
 
23
 
 
24
/*
 
25
 * ospxmlattr.h - Structures and prototypes for generic XML attributes.
 
26
 */
 
27
 
 
28
#ifndef _OSPXMLATTR_H
 
29
#define _OSPXMLATTR_H
 
30
 
 
31
#include "osp/osp.h"
 
32
#include "osp/osplist.h"
 
33
 
 
34
/*
 
35
 * An XMLAttr structure represents an XML attribute in its
 
36
 * natural form ("natural" in the sense of easiest to reference
 
37
 * in code). It includes the attribute's name, as well as the
 
38
 * character value. The structure is defined as a linked list
 
39
 * so that multiple attributes (e.g. for the same element) can
 
40
 * be linked together.
 
41
 */
 
42
 
 
43
typedef struct OSPSXMLAttr
 
44
{
 
45
    OSPTLISTLINK ospmXMLAttrLink;
 
46
    const char  *ospmXMLAttrName;
 
47
    const char  *ospmXMLAttrValue;
 
48
}
 
49
OSPTXMLATTR;
 
50
 
 
51
 
 
52
#define OSPC_MAX_ID_LEN 25
 
53
 
 
54
/* */
 
55
/*-----------------------------------------------------------------------*
 
56
 * function prototypes
 
57
 *-----------------------------------------------------------------------*/
 
58
 
 
59
#ifdef __cplusplus
 
60
extern "C" 
 
61
{
 
62
#endif
 
63
 
 
64
OSPTXMLATTR *OSPPXMLAttrNew(const unsigned char *, const unsigned char *);
 
65
void         OSPPXMLAttrDelete(OSPTXMLATTR **);
 
66
 
 
67
const char *OSPPXMLAttrGetName(OSPTXMLATTR *);
 
68
 
 
69
const char *OSPPXMLAttrGetValue(OSPTXMLATTR *);
 
70
 
 
71
 
 
72
#ifdef __cplusplus
 
73
}
 
74
#endif
 
75
 
 
76
#endif
 
77