OpenJPEG  2.5.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

◆ FCGI_stderr

#define FCGI_stderr   stderr

◆ FCGI_stdout

#define FCGI_stdout   stdout

◆ logstream

#define logstream   stderr

◆ MAX_LENOFFIELDNAME

#define MAX_LENOFFIELDNAME   10

maximum length of field name

◆ MAX_LENOFFIELDVAL

#define MAX_LENOFFIELDVAL   128

maximum length of field value

Function Documentation

◆ delete_query()

void delete_query ( query_param_t **  query)

delete query

Parameters
[in]queryaddress of the deleting query pointer

References opj_free().

◆ get_fieldparam()

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

Referenced by parse_query().

◆ get_initquery()

query_param_t * get_initquery ( void  )

◆ parse_cclose()

void parse_cclose ( char *  src,
query_param_t query_param 
)

◆ parse_comps()

void parse_comps ( char *  field,
query_param_t query_param 
)

◆ parse_metareq()

void parse_metareq ( char *  field,
query_param_t query_param 
)

◆ parse_query()

query_param_t* parse_query ( const char *  query_string)

◆ parse_req_box_prop()

void parse_req_box_prop ( char *  req_box_prop,
int  idx,
query_param_t query_param 
)

◆ print_queryparam()

void print_queryparam ( query_param_t  query_param)