OpFlex Framework  1.7.0

A URI is used to identify managed objects in the MODB. More...

Typedefs

typedef ofobj_p ofuri_p
 A pointer to a URI object.
 

Functions

ofstatus ofuri_get_str (ofuri_p uri, const char **str)
 Get a C-style string representation of the URI. More...
 
ofstatus ofuri_hash (ofuri_p uri, size_t *hash_value)
 Compute a hash value for the URI that can be used with a hash table. More...
 

Detailed Description

A URI is used to identify managed objects in the MODB.

It takes the form of a series of names and value of naming properties such as "/childname1/5/childname2/8/value2" that represents a unique path from the root of the tree to the specific child.

Function Documentation

◆ ofuri_get_str()

ofstatus ofuri_get_str ( ofuri_p  uri,
const char **  str 
)

Get a C-style string representation of the URI.

The result is returned in the provided out pointer. The resulting memory is owned by the object and must not be freed by the caller.

Parameters
urithe URI
strthe pointer that will recieve the output
Returns
a status code

◆ ofuri_hash()

ofstatus ofuri_hash ( ofuri_p  uri,
size_t *  hash_value 
)

Compute a hash value for the URI that can be used with a hash table.

Parameters
urithe URI
hash_valuea size_t pointer that will recieve the hash value
Returns
a status code