Changeset 849ed54 in mainline for uspace/lib/socket/include/adt
- Timestamp:
- 2010-03-30T18:39:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7553689
- Parents:
- 7d6fe4db
- Location:
- uspace/lib/socket/include/adt
- Files:
-
- 6 moved
-
char_map.h (moved) (moved from uspace/srv/net/structures/char_map.h ) (5 diffs)
-
dynamic_fifo.h (moved) (moved from uspace/srv/net/structures/dynamic_fifo.h ) (5 diffs)
-
generic_char_map.h (moved) (moved from uspace/srv/net/structures/generic_char_map.h ) (1 diff)
-
generic_field.h (moved) (moved from uspace/srv/net/structures/generic_field.h )
-
int_map.h (moved) (moved from uspace/srv/net/structures/int_map.h )
-
measured_strings.h (moved) (moved from uspace/srv/net/structures/measured_strings.h ) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/socket/include/adt/char_map.h
r7d6fe4db r849ed54 89 89 * @returns Other error codes as defined for the char_map_add_item() function. 90 90 */ 91 int char_map_add(char_map_ref map, const char * identifier, size_t length, const int value);91 extern int char_map_add(char_map_ref map, const char * identifier, size_t length, const int value); 92 92 93 93 /** Clears and destroys the map. 94 94 * @param[in,out] map The character string to integer map. 95 95 */ 96 void char_map_destroy(char_map_ref map);96 extern void char_map_destroy(char_map_ref map); 97 97 98 98 /** Excludes the value assigned to the key from the map. … … 104 104 * @returns CHAR_MAP_NULL if the key is not assigned a value. 105 105 */ 106 int char_map_exclude(char_map_ref map, const char * identifier, size_t length);106 extern int char_map_exclude(char_map_ref map, const char * identifier, size_t length); 107 107 108 108 /** Returns the value assigned to the key from the map. … … 113 113 * @returns CHAR_MAP_NULL if the key is not assigned a value. 114 114 */ 115 int char_map_find(const char_map_ref map, const char * identifier, size_t length);115 extern int char_map_find(const char_map_ref map, const char * identifier, size_t length); 116 116 117 117 /** Initializes the map. … … 121 121 * @returns ENOMEM if there is not enough memory left. 122 122 */ 123 int char_map_initialize(char_map_ref map);123 extern int char_map_initialize(char_map_ref map); 124 124 125 125 /** Adds or updates the value with the key to the map. … … 135 135 * @returns Other error codes as defined for the char_map_add_item() function. 136 136 */ 137 int char_map_update(char_map_ref map, const char * identifier, size_t length, const int value);137 extern int char_map_update(char_map_ref map, const char * identifier, size_t length, const int value); 138 138 139 139 #endif -
uspace/lib/socket/include/adt/dynamic_fifo.h
r7d6fe4db r849ed54 79 79 * @returns ENOMEM if there is not enough memory left. 80 80 */ 81 int dyn_fifo_initialize(dyn_fifo_ref fifo, int size);81 extern int dyn_fifo_initialize(dyn_fifo_ref fifo, int size); 82 82 83 83 /** Appends a new item to the queue end. … … 89 89 * @returns ENOMEM if there is not enough memory left. 90 90 */ 91 int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size);91 extern int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size); 92 92 93 93 /** Returns and excludes the first item in the queue. … … 97 97 * @returns ENOENT if the queue is empty. 98 98 */ 99 int dyn_fifo_pop(dyn_fifo_ref fifo);99 extern int dyn_fifo_pop(dyn_fifo_ref fifo); 100 100 101 101 /** Returns and keeps the first item in the queue. … … 105 105 * @returns ENOENT if the queue is empty. 106 106 */ 107 int dyn_fifo_value(dyn_fifo_ref fifo);107 extern int dyn_fifo_value(dyn_fifo_ref fifo); 108 108 109 109 /** Clears and destroys the queue. … … 112 112 * @returns EINVAL if the queue is not valid. 113 113 */ 114 int dyn_fifo_destroy(dyn_fifo_ref fifo);114 extern int dyn_fifo_destroy(dyn_fifo_ref fifo); 115 115 116 116 #endif -
uspace/lib/socket/include/adt/generic_char_map.h
r7d6fe4db r849ed54 41 41 #include <unistd.h> 42 42 43 #include "../err.h"43 #include <net_err.h> 44 44 45 #include "char_map.h"46 #include "generic_field.h"45 #include <adt/char_map.h> 46 #include <adt/generic_field.h> 47 47 48 48 /** Internal magic value for a map consistency check. -
uspace/lib/socket/include/adt/measured_strings.h
r7d6fe4db r849ed54 71 71 * @returns NULL if there is not enough memory left. 72 72 */ 73 measured_string_ref measured_string_create_bulk(const char * string, size_t length);73 extern measured_string_ref measured_string_create_bulk(const char * string, size_t length); 74 74 75 75 /** Copies the given measured string with separated header and data parts. … … 79 79 * @returns NULL if there is not enough memory left. 80 80 */ 81 measured_string_ref measured_string_copy(measured_string_ref source);81 extern measured_string_ref measured_string_copy(measured_string_ref source); 82 82 83 83 /** Receives a measured strings array from a calling module. … … 95 95 * @returns Other error codes as defined for the async_data_write_finalize() function. 96 96 */ 97 int measured_strings_receive(measured_string_ref * strings, char ** data, size_t count);97 extern int measured_strings_receive(measured_string_ref * strings, char ** data, size_t count); 98 98 99 99 /** Replies the given measured strings array to a calling module. … … 108 108 * @returns Other error codes as defined for the async_data_read_finalize() function. 109 109 */ 110 int measured_strings_reply(const measured_string_ref strings, size_t count);110 extern int measured_strings_reply(const measured_string_ref strings, size_t count); 111 111 112 112 /** Receives a measured strings array from another module. … … 124 124 * @returns Other error codes as defined for the async_data_read_start() function. 125 125 */ 126 int measured_strings_return(int phone, measured_string_ref * strings, char ** data, size_t count);126 extern int measured_strings_return(int phone, measured_string_ref * strings, char ** data, size_t count); 127 127 128 128 /** Sends the given measured strings array to another module. … … 136 136 * @returns Other error codes as defined for the async_data_write_start() function. 137 137 */ 138 int measured_strings_send(int phone, const measured_string_ref strings, size_t count);138 extern int measured_strings_send(int phone, const measured_string_ref strings, size_t count); 139 139 140 140 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
