taskrambler  0.1.9
Web server and task management solution.
serializable.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  i_Serializable
 

Typedefs

typedef void(* fptr_serialize) (void *, unsigned char **, size_t *)
 
typedef void(* fptr_unserialize) (void *, const unsigned char *, size_t)
 

Functions

void serialize (void *, unsigned char **, size_t *)
 
void unserialize (void *, const unsigned char *, size_t)
 

Variables

const struct interface i_Serializable
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file serializable.h.


Data Structure Documentation

struct i_Serializable

Definition at line 31 of file serializable.h.

+ Collaboration diagram for i_Serializable:
Data Fields
const struct interface *const _
fptr_serialize serialize
fptr_unserialize unserialize

Typedef Documentation

typedef void(* fptr_serialize) (void *, unsigned char **, size_t *)

Definition at line 26 of file serializable.h.

typedef void(* fptr_unserialize) (void *, const unsigned char *, size_t)

Definition at line 27 of file serializable.h.

Function Documentation

void serialize ( void *  ,
unsigned char **  ,
size_t *   
)

Definition at line 32 of file serializable.c.

References CALL.

Referenced by applicationCreateUser(), applicationLogin(), and applicationUpdateUser().

36 {
37  CALL(serializable, Serializable, serialize, serialized, nserialized);
38 }
void serialize(void *serializable, unsigned char **serialized, size_t *nserialized)
Definition: serializable.c:32
#define CALL(object, _iface, method,...)
Definition: class/class.h:106

+ Here is the caller graph for this function:

void unserialize ( void *  ,
const unsigned char *  ,
size_t   
)

Definition at line 41 of file serializable.c.

References CALL.

Referenced by applicationGetUser(), and applicationLogin().

45 {
46  CALL(serializable, Serializable, unserialize, serialized, nserialized);
47 }
#define CALL(object, _iface, method,...)
Definition: class/class.h:106
void unserialize(void *serializable, const unsigned char *serialized, size_t nserialized)
Definition: serializable.c:41

+ Here is the caller graph for this function:

Variable Documentation

const struct interface i_Serializable

Definition at line 26 of file serializable.c.