prelude-ident

Name

prelude-ident -- 

Synopsis



uint64_t    prelude_ident_inc               (prelude_ident_t *ident);
uint64_t    prelude_ident_dec               (prelude_ident_t *ident);
void        prelude_ident_destroy           (prelude_ident_t *ident);
prelude_ident_t* prelude_ident_new          (const char *filename);

Description

Details

prelude_ident_inc ()

uint64_t    prelude_ident_inc               (prelude_ident_t *ident);

Increment the ident associated with the prelude_ident_t object.

ident :

Pointer to a prelude_ident_t object.

Returns :

the new ident.


prelude_ident_dec ()

uint64_t    prelude_ident_dec               (prelude_ident_t *ident);

Decrement the ident associated with the prelude_ident_t object.

ident :

Pointer to a prelude_ident_t object.

Returns :

the new ident.


prelude_ident_destroy ()

void        prelude_ident_destroy           (prelude_ident_t *ident);

Destroy a prelude_ident_t object.

ident :

Pointer to a prelude_ident_t object.


prelude_ident_new ()

prelude_ident_t* prelude_ident_new          (const char *filename);

Create a new prelude_ident_t object. The current ident is set to 0 if there was no ident associated with this file, or the current ident.

filename :

Pointer to a filename where the ident should be stored.

Returns :

a new prelude_ident_t object, or NULL if an error occured.