measured_strings.h File Reference

Character string with measured length. More...

#include <sys/types.h>
Include dependency graph for measured_strings.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  measured_string
 Character string with measured length. More...

Typedefs

typedef struct measured_string measured_string_t
 Type definition of the character string with measured length.
typedef measured_string_tmeasured_string_ref
 Type definition of the character string with measured length pointer.

Functions

measured_string_ref measured_string_create_bulk (const char *string, size_t length)
 Creates a new measured string bundled with a copy of the given string itself as one memory block.
measured_string_ref measured_string_copy (measured_string_ref source)
 Copies the given measured string with separated header and data parts.
int measured_strings_receive (measured_string_ref *strings, char **data, size_t count)
 Receives a measured strings array from a calling module.
int measured_strings_reply (const measured_string_ref strings, size_t count)
 Replies the given measured strings array to a calling module.
int measured_strings_return (int phone, measured_string_ref *strings, char **data, size_t count)
 Receives a measured strings array from another module.
int measured_strings_send (int phone, const measured_string_ref strings, size_t count)
 Sends the given measured strings array to another module.

Detailed Description

Character string with measured length.

The structure has been designed for serialization of character strings between modules.


Generated on Thu Mar 11 20:46:15 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1