JULEA
Data Structures | Typedefs | Functions
Credentials

Data Structures

struct  JCredentials
 

Typedefs

typedef struct JCredentials JCredentials
 

Functions

JCredentialsj_credentials_new (void)
 
JCredentialsj_credentials_ref (JCredentials *credentials)
 
void j_credentials_unref (JCredentials *credentials)
 
guint32 j_credentials_get_user (JCredentials *credentials)
 
guint32 j_credentials_get_group (JCredentials *credentials)
 
bson_t * j_credentials_serialize (JCredentials *credentials)
 
void j_credentials_deserialize (JCredentials *credentials, bson_t const *b)
 

Detailed Description

Typedef Documentation

◆ JCredentials

typedef struct JCredentials JCredentials

Function Documentation

◆ j_credentials_deserialize()

void j_credentials_deserialize ( JCredentials credentials,
bson_t const *  b 
)

Deserializes credentials.

Parameters
credentialscredentials.
bA BSON object.

◆ j_credentials_get_group()

guint32 j_credentials_get_group ( JCredentials credentials)

Get the group id associated with the credentials

Parameters
credentialsA credentials object.
Returns
The group id.

◆ j_credentials_get_user()

guint32 j_credentials_get_user ( JCredentials credentials)

Get the user id associated with the credentials

Parameters
credentialsA credentials object.
Returns
The user id.

◆ j_credentials_new()

JCredentials * j_credentials_new ( void  )

Create new credential for the current user.

Returns
A new JCredentials object. Should be freed with j_credentials_unref().

◆ j_credentials_ref()

JCredentials * j_credentials_ref ( JCredentials credentials)

Increases the credential's reference count.

Parameters
credentialsA credentials object.
Returns
The credentials object.

◆ j_credentials_serialize()

bson_t * j_credentials_serialize ( JCredentials credentials)

Serializes credentials.

Parameters
credentialsCredentials.
Returns
A new BSON object. Should be freed with bson_destroy().

◆ j_credentials_unref()

void j_credentials_unref ( JCredentials credentials)

Decreases the credential's reference count.

Parameters
credentialsA credentials object.