SpreadRPC Value Builder API

SpreadRPC Value Builder API — How to create value using the builder syntax

Synopsis

SPRpcValue*         sp_rpc_value_builder                (gchar *format,
                                                         ...);
SPRpcValue*         sp_rpc_value_builder_va             (gchar *format,
                                                         va_list va);

Description

How to create value using the builder syntax

Details

sp_rpc_value_builder ()

SPRpcValue*         sp_rpc_value_builder                (gchar *format,
                                                         ...);

Parses a format string and creates a valid SPRpcValue.

format :

a format string using the builder syntax

... :

the list of parameters to insert into the format string.

Returns :

a new allocated SPRpcValue, or NULL if the format is not valid

sp_rpc_value_builder_va ()

SPRpcValue*         sp_rpc_value_builder_va             (gchar *format,
                                                         va_list va);

Parses a format string and creates a valid SPRpcValue.

format :

a format string using the builder syntax

va :

the list of parameters to insert into the format string.

Returns :

a new allocated SPRpcValue, or NULL if the format is not valid