OpenJPEG  2.2.0
Macros | Functions
query_parser.c File Reference
#include <strings.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "query_parser.h"
#include "opj_stdint.h"

Macros

#define FCGI_stdout   stdout
 
#define FCGI_stderr   stderr
 
#define logstream   stderr
 
#define MAX_LENOFFIELDNAME   10
 maximum length of field name More...
 
#define MAX_LENOFFIELDVAL   128
 maximum length of field value More...
 

Functions

query_param_tget_initquery (void)
 Get initialized query parameters. More...
 
char * get_fieldparam (const char *stringptr, char *fieldname, char *fieldval)
 
void parse_cclose (char *src, query_param_t *query_param)
 
void parse_metareq (char *field, query_param_t *query_param)
 
void parse_comps (char *field, query_param_t *query_param)
 
query_param_tparse_query (const char *query_string)
 parse query More...
 
void print_queryparam (query_param_t query_param)
 print query parameters More...
 
void parse_req_box_prop (char *req_box_prop, int idx, query_param_t *query_param)
 
void delete_query (query_param_t **query)
 delete query More...
 

Macro Definition Documentation

#define FCGI_stderr   stderr
#define FCGI_stdout   stdout
#define logstream   stderr

Referenced by print_queryparam().

#define MAX_LENOFFIELDNAME   10

maximum length of field name

Referenced by parse_query().

#define MAX_LENOFFIELDVAL   128

maximum length of field value

Referenced by parse_query().

Function Documentation

void delete_query ( query_param_t **  query)

delete query

Parameters
[in]queryaddress of the deleting query pointer

References opj_free().

char * get_fieldparam ( const char *  stringptr,
char *  fieldname,
char *  fieldval 
)

Referenced by parse_query().

query_param_t * get_initquery ( void  )
void parse_cclose ( char *  src,
query_param_t query_param 
)
void parse_comps ( char *  field,
query_param_t query_param 
)
void parse_metareq ( char *  field,
query_param_t query_param 
)
query_param_t* parse_query ( const char *  query_string)
void parse_req_box_prop ( char *  req_box_prop,
int  idx,
query_param_t query_param 
)
void print_queryparam ( query_param_t  query_param)