/** * raptor_xml_writer_set_option: * @xml_writer: #raptor_xml_writer xml_writer object * @option: option to set from enumerated #raptor_option values * @string: string option value (or NULL) * @integer: integer option value * * Set xml_writer option. * * If @string is not NULL and the option type is numeric, the string * value is converted to an integer and used in preference to @integer. * * If @string is NULL and the option type is not numeric, an error is * returned. * * The @string values used are copied. * * The allowed options are available via * raptor_world_get_option_description(). * * Return value: non 0 on failure or if the option is unknown **/ int raptor_xml_writer_set_option(raptor_xml_writer *xml_writer, raptor_option option, char* string, int integer) { return raptor_object_options_set_option(&xml_writer->options, option, string, integer); }
/** * raptor_serializer_set_option: * @serializer: #raptor_serializer serializer object * @option: option to set from enumerated #raptor_option values * @string: string option value (or NULL) * @integer: integer option value * * Set serializer option. * * If @string is not NULL and the option type is numeric, the string * value is converted to an integer and used in preference to @integer. * * If @string is NULL and the option type is not numeric, an error is * returned. * * The @string values used are copied. * * The allowed options are available via * raptor_world_get_option_description(). * * Return value: non 0 on failure or if the option is unknown **/ int raptor_serializer_set_option(raptor_serializer *serializer, raptor_option option, const char* string, int integer) { return raptor_object_options_set_option(&serializer->options, option, string, integer); }