rasqal_new_variable_typed

Name

rasqal_new_variable_typed --  Constructor - Create a new typed Rasqal variable

Synopsis

rasqal_variable* rasqal_new_variable_typed (rasqal_query* rq, rasqal_variable_type type, unsigned char * name, rasqal_literal * value);

Arguments

rq

rasqal_query to associate the variable with

type

variable type defined by enumeration rasqal_variable_type

name

variable name

value

variable rasqal_literal value (or NULL)

Description

The variable must be associated with a query, since variable names are only significant with a single query.

The name and value become owned by the rasqal_variable structure

Return value

a new rasqal_variable or NULL on failure.