# API Changes

This chapter describes the API changes for Redland librdf.

## Introduction

The following sections describe the changes in the API between versions including additions, deletions, renames (retaining the same number of parameters, types and return value type) and more complex changes to functions, types and enums.

## Changes between Redland librdf 1.0.13 and 1.0.14

### New functions, types and enums

#### Functions

- unsigned char* `librdf_latin1_to_utf8`(const unsigned char *input, int length, int *output_length)

- int `librdf_parser_parse_iostream_as_stream`(librdf_parser* parser, raptor_iostream *iostream, librdf_uri* base_uri)

- int `librdf_parser_parse_iostream_into_model`(librdf_parser* parser, raptor_iostream *iostream, librdf_uri* base_uri, librdf_model* model)

- const raptor_syntax_description* `librdf_query_language_get_description`(librdf_world* world, unsigned int counter)

- int `librdf_unicode_char_to_utf8`(librdf_unichar c, unsigned char *output, int length) - Documented but deprecated for `raptor_unicode_utf8_string_put_char`()

- void `librdf_utf8_print`(const unsigned char *input, int length, FILE *stream)

- unsigned char* `librdf_utf8_to_latin1`(const unsigned char *input, int length, int *output_length)

- int `librdf_utf8_to_unicode_char`(librdf_unichar *output, const unsigned char *input, int length) - Documented but deprecated for `raptor_unicode_utf8_string_get_char`()

## Changes between Redland librdf 1.0.12 and 1.0.13

### New functions, types and enums

#### Functions

- const raptor_syntax_description* `librdf_parser_get_description`(librdf_world* world, unsigned int counter) - Deprecates `librdf_parser_enumerate`()

- const raptor_syntax_description* `librdf_query_results_formats_get_description`(librdf_world* world, unsigned int counter) - Deprecates `librdf_query_results_formats_enumerate`()

- const raptor_syntax_description* `librdf_serializer_get_description`(librdf_world* world, unsigned int counter) - Deprecates `librdf_serializer_enumerate`()

#### Types

- LIBRDF_VERSION

- LIBRDF_VERSION_MAJOR

- LIBRDF_VERSION_MINOR

- LIBRDF_VERSION_RELEASE

- LIBRDF_VERSION_STRING

### Changed functions and types

1.0.12 type | 1.0.13 type | Notes
--- | --- | ---
librdf_node | librdf_node | Now a typedef for raptor_term
librdf_statement | librdf_statement | Now a typedef for raptor_statement
librdf_uri | librdf_uri | Now a typedef for raptor_uri