JULEA
Data Structures | Typedefs | Enumerations | Functions
KV URI

Data Structures

struct  JKVURI
 

Typedefs

typedef enum JKVURIScheme JKVURIScheme
 
typedef struct JKVURI JKVURI
 

Enumerations

enum  JKVURIScheme { J_KV_URI_SCHEME_NAMESPACE , J_KV_URI_SCHEME_KV }
 

Functions

G_END_DECLS G_BEGIN_DECLS JKVURIj_kv_uri_new (gchar const *uri_, JKVURIScheme scheme)
 
void j_kv_uri_free (JKVURI *uri)
 
guint32 j_kv_uri_get_index (JKVURI *uri)
 
gchar const * j_kv_uri_get_namespace (JKVURI *uri)
 
gchar const * j_kv_uri_get_name (JKVURI *uri)
 
JKVj_kv_uri_get_kv (JKVURI *uri)
 

Detailed Description

Typedef Documentation

◆ JKVURI

typedef struct JKVURI JKVURI

◆ JKVURIScheme

typedef enum JKVURIScheme JKVURIScheme

Enumeration Type Documentation

◆ JKVURIScheme

Enumerator
J_KV_URI_SCHEME_NAMESPACE 
J_KV_URI_SCHEME_KV 

Function Documentation

◆ j_kv_uri_free()

void j_kv_uri_free ( JKVURI uri)

Frees the memory allocated by a URI.

JKVURI* uri;
...
j_kv_uri_free(uri);
Definition: jkv-uri.c:43
Parameters
uriA URI.

◆ j_kv_uri_get_index()

guint32 j_kv_uri_get_index ( JKVURI uri)

Returns the index.

JKVURI* uri;
...
g_print("%u\n", j_kv_uri_get_index(uri));
guint32 j_kv_uri_get_index(JKVURI *uri)
Definition: jkv-uri.c:220
Parameters
uriA URI.
Returns
The index.

◆ j_kv_uri_get_kv()

JKV * j_kv_uri_get_kv ( JKVURI uri)

Returns the kv.

JKVURI* uri;
...
g_print("%s\n", j_kv_uri_get_object(uri));
Parameters
uriA URI.
Returns
The kv.

◆ j_kv_uri_get_name()

gchar const * j_kv_uri_get_name ( JKVURI uri)

Returns the name.

JKVURI* uri;
...
g_print("%s\n", j_kv_uri_get_item_name(uri));
Parameters
uriA URI.
Returns
The name.

◆ j_kv_uri_get_namespace()

gchar const * j_kv_uri_get_namespace ( JKVURI uri)

Returns the namespace.

JKVURI* uri;
...
g_print("%s\n", j_kv_uri_get_namespace(uri));
gchar const * j_kv_uri_get_namespace(JKVURI *uri)
Definition: jkv-uri.c:230
Parameters
uriA URI.
Returns
The namespace.

◆ j_kv_uri_new()

JKVURI * j_kv_uri_new ( gchar const *  uri_,
JKVURIScheme  scheme 
)

Creates a new URI.

JKVURI* uri;
uri = j_kv_uri_new("julea://foo/bar");
G_END_DECLS G_BEGIN_DECLS JKVURI * j_kv_uri_new(gchar const *uri_, JKVURIScheme scheme)
Definition: jkv-uri.c:177
Parameters
uri_A URI string.
schemeThe JKVURIScheme to use.
Returns
A new URI. Should be freed with j_kv_uri_free().