General

General — Static variables and memory handling.

Synopsis

#define             LIBRDF_VERSION
#define             LIBRDF_VERSION_MAJOR
#define             LIBRDF_VERSION_MINOR
#define             LIBRDF_VERSION_RELEASE
#define             LIBRDF_VERSION_STRING
extern const unsigned int librdf_version_decimal;
extern const unsigned int librdf_version_major;
extern const unsigned int librdf_version_release;
extern const unsigned int librdf_version_minor;
extern const char * const librdf_version_string;
extern const char * const librdf_copyright_string;
extern const char * const librdf_short_copyright_string;
extern const char * const librdf_license_string;
extern const char * const librdf_home_url_string;
void *              librdf_alloc_memory                 (size_t size);
void *              librdf_calloc_memory                (size_t nmemb,
                                                         size_t size);
void                librdf_free_memory                  (void *ptr);
#define             REDLAND_DEPRECATED

Description

Static variables for version numbers and strings, copyright strings and home page. Functions for in-library memory allocation and deallocation.

Details

LIBRDF_VERSION

#define LIBRDF_VERSION 10018

Redland librdf library version number

Format: major * 10000 + minor * 100 + release


LIBRDF_VERSION_MAJOR

#define LIBRDF_VERSION_MAJOR 1

Redland librdf library major version


LIBRDF_VERSION_MINOR

#define LIBRDF_VERSION_MINOR 0

Redland librdf library minor version


LIBRDF_VERSION_RELEASE

#define LIBRDF_VERSION_RELEASE 18

Redland librdf library release


LIBRDF_VERSION_STRING

#define LIBRDF_VERSION_STRING "1.0.18"

Redland librdf library version string


librdf_version_decimal

extern const unsigned int librdf_version_decimal;

Redland librdf version as a decimal number.

Format: major * 10000 + minor * 100 + release


librdf_version_major

extern const unsigned int librdf_version_major;

Redland librdf major version number.


librdf_version_release

extern const unsigned int librdf_version_release;

Redland librdf release version number.


librdf_version_minor

extern const unsigned int librdf_version_minor;

Redland librdf minor version number.


librdf_version_string

extern const char * const librdf_version_string;

Redland librdf version as a string.


librdf_copyright_string

extern const char * const librdf_copyright_string;

Copyright string (multiple lines).


librdf_short_copyright_string

extern const char * const librdf_short_copyright_string;

Short copyright string (one line).


librdf_license_string

extern const char * const librdf_license_string;

Redland librdf license string.


librdf_home_url_string

extern const char * const librdf_home_url_string;

Redland librdf home page URL.


librdf_alloc_memory ()

void *              librdf_alloc_memory                 (size_t size);

Allocate memory inside the library similar to malloc().

Required for some runtimes where memory must be freed within the same shared object it was allocated in.

size :

alloc size

Returns :

pointer to memory or NULL on failure

librdf_calloc_memory ()

void *              librdf_calloc_memory                (size_t nmemb,
                                                         size_t size);

Allocate zeroed array of items inside the library similar to calloc().

Required for some runtimes where memory must be freed within the same shared object it was allocated in.

nmemb :

number of members

size :

size of member

Returns :

pointer to memory or NULL on failure

librdf_free_memory ()

void                librdf_free_memory                  (void *ptr);

Free memory allocated in the library.

Required for some runtimes where memory must be freed within the same shared object it was allocated in.

ptr :

pointer to free

REDLAND_DEPRECATED

#define REDLAND_DEPRECATED __attribute__((deprecated))

When defined before a function, indicates that the function has been deprecated and may be replaced in a future release. With some versions of gcc this may give a compilation warning.



Navigation: Redland Home Page

Copyright 2000-2023 Dave Beckett