exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
procTypes.c File Reference

Support functions for the common types. More...

#include "procTypes.h"
#include "memManagement.h"

Go to the source code of this file.

Functions

void makeDefaultOpts (EXIOptions *opts)
 Set the EXI options to their default values. More...
 
errorCode checkOptionValues (EXIOptions *opts)
 Check if the EXI options are set correctly. More...
 
errorCode pushOnStack (GenericStack **stack, void *item)
 
void popFromStack (GenericStack **stack, void **item)
 
int compareEnumDefs (const void *enum1, const void *enum2)
 
errorCode pushOnStackPersistent (GenericStack **stack, void *item, AllocList *memList)
 
void popFromStackPersistent (GenericStack **stack, void **item)
 

Variables

const char * errorCodeStrings []
 

Detailed Description

Date
Sep 6, 2010
Author
Rumen Kyusakov
Version
0.5
[Revision] $Id: procTypes.c 352 2014-11-25 16:37:24Z kjussakov $

Definition in file procTypes.c.

Function Documentation

errorCode checkOptionValues ( EXIOptions opts)
Parameters
[in]optsEXI options structure
Returns
EXIP_OK if the values are correct, otherwise EXIP_HEADER_OPTIONS_MISMATCH

Mismatch in the header options. This error can be due to: 1) The "alignment" element MUST NOT appear in an EXI options document when the "compression" element is present; 2) The "strict" element MUST NOT appear in an EXI options document when one of "dtd", "prefixes", "comments", "pis" or "selfContained" element is present in the same options document. That is only the element "lexicalValues", from the fidelity options, is permitted to occur in the presence of "strict" element; 3) The "selfContained" element MUST NOT appear in an EXI options document when one of "compression", "pre-compression" or "strict" elements are present in the same options document. 4) The datatypeRepresentationMap option does not take effect when the value of the Preserve.lexicalValues fidelity option is true (see 6.3 Fidelity Options), or when the EXI stream is a schema-less EXI stream.

Definition at line 35 of file procTypes.c.

int compareEnumDefs ( const void *  enum1,
const void *  enum2 
)

Definition at line 107 of file procTypes.c.

void makeDefaultOpts ( EXIOptions opts)
Parameters
[in,out]optsEXI options structure

Definition at line 21 of file procTypes.c.

void popFromStack ( GenericStack **  stack,
void **  item 
)

Definition at line 90 of file procTypes.c.

void popFromStackPersistent ( GenericStack **  stack,
void **  item 
)

Definition at line 132 of file procTypes.c.

errorCode pushOnStack ( GenericStack **  stack,
void *  item 
)

Definition at line 78 of file procTypes.c.

errorCode pushOnStackPersistent ( GenericStack **  stack,
void *  item,
AllocList memList 
)

Definition at line 120 of file procTypes.c.

Variable Documentation

const char* errorCodeStrings[]
Initial value:
=
{
"EXIP_OK",
"EXIP_NOT_IMPLEMENTED_YET",
"EXIP_UNEXPECTED_ERROR",
"EXIP_HASH_TABLE_ERROR",
"EXIP_OUT_OF_BOUND_BUFFER",
"EXIP_NULL_POINTER_REF",
"EXIP_MEMORY_ALLOCATION_ERROR",
"EXIP_INVALID_EXI_HEADER",
"EXIP_INCONSISTENT_PROC_STATE",
"EXIP_INVALID_EXI_INPUT",
"EXIP_BUFFER_END_REACHED",
"EXIP_PARSING_COMPLETE",
"EXIP_INVALID_EXIP_CONFIGURATION",
"EXIP_NO_PREFIXES_PRESERVED_XML_SCHEMA",
"EXIP_INVALID_STRING_OPERATION",
"EXIP_HEADER_OPTIONS_MISMATCH",
"EXIP_HANDLER_STOP"
}

Definition at line 150 of file procTypes.c.