Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://bitbucket.org/Coin3D/
http://www.kongsberg.com/kogt/
params.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <config.h>
#include <simage.h>
#include <string.h>
#include <stdarg.h>

Data Structures

struct  simage_param_data
 
struct  simage_parameters_s
 

Typedefs

typedef void s_generic_func()
 

Functions

s_paramss_params_create (void)
 
void s_params_destroy (s_params *params)
 
static struct simage_param_datafind_param (s_params *params, const char *name, int type, int allocnew)
 
s_paramss_params_copy (s_params *params)
 
static void add_integer_param (s_params *params, const char *name, int val)
 
static void add_float_param (s_params *params, const char *name, float val)
 
static void add_double_param (s_params *params, const char *name, double val)
 
static void add_string_param (s_params *params, const char *name, const char *val)
 
static void add_pointer_param (s_params *params, const char *name, void *val)
 
static void add_function_param (s_params *params, const char *name, void(*val)())
 
void s_params_set (s_params *params,...)
 
int s_params_get (s_params *params,...)
 

Typedef Documentation

◆ s_generic_func

typedef void s_generic_func()

Function Documentation

◆ s_params_create()

s_params* s_params_create ( void  )

◆ s_params_destroy()

void s_params_destroy ( s_params params)

◆ find_param()

static struct simage_param_data* find_param ( s_params params,
const char *  name,
int  type,
int  allocnew 
)
static

◆ s_params_copy()

s_params* s_params_copy ( s_params params)

◆ add_integer_param()

static void add_integer_param ( s_params params,
const char *  name,
int  val 
)
static

◆ add_float_param()

static void add_float_param ( s_params params,
const char *  name,
float  val 
)
static

◆ add_double_param()

static void add_double_param ( s_params params,
const char *  name,
double  val 
)
static

◆ add_string_param()

static void add_string_param ( s_params params,
const char *  name,
const char *  val 
)
static

◆ add_pointer_param()

static void add_pointer_param ( s_params params,
const char *  name,
void *  val 
)
static

◆ add_function_param()

static void add_function_param ( s_params params,
const char *  name,
void(*)()  val 
)
static

◆ s_params_set()

void s_params_set ( s_params params,
  ... 
)

◆ s_params_get()

int s_params_get ( s_params params,
  ... 
)