Changeset 59ecd4a3 in mainline for uspace/app/netecho/parse.h
- Timestamp:
- 2010-04-04T21:41:47Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5db9084
- Parents:
- 36a75a2 (diff), ee7e82a9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netecho/parse.h
r36a75a2 r59ecd4a3 38 38 #define __NET_APP_PARSE__ 39 39 40 #include "../include/socket.h"40 #include <socket.h> 41 41 42 42 /** Translates the character string to the address family number. … … 45 45 * @returns EAFNOSUPPORTED if the address family is not supported. 46 46 */ 47 int parse_address_family(const char * name);47 extern int parse_address_family(const char * name); 48 48 49 49 /** Parses the next parameter as an integral number. … … 60 60 * @returns EINVAL if the parameter is in wrong format. 61 61 */ 62 int parse_parameter_int(int argc, char ** argv, int * index, int * value, const char * name, int offset);62 extern int parse_parameter_int(int argc, char ** argv, int * index, int * value, const char * name, int offset); 63 63 64 64 /** Parses the next named parameter as an integral number. … … 78 78 * @returns ENOENT if the parameter name has not been found. 79 79 */ 80 int parse_parameter_name_int(int argc, char ** argv, int * index, int * value, const char * name, int offset, int (*parse_value)(const char * value));80 extern int parse_parameter_name_int(int argc, char ** argv, int * index, int * value, const char * name, int offset, int (*parse_value)(const char * value)); 81 81 82 82 /** Parses the next parameter as a character string. … … 93 93 * @returns EINVAL if the parameter is missing. 94 94 */ 95 int parse_parameter_string(int argc, char ** argv, int * index, char ** value, const char * name, int offset);95 extern int parse_parameter_string(int argc, char ** argv, int * index, char ** value, const char * name, int offset); 96 96 97 97 /** Translates the character string to the protocol family number. … … 100 100 * @returns EPFNOSUPPORTED if the protocol family is not supported. 101 101 */ 102 int parse_protocol_family(const char * name);102 extern int parse_protocol_family(const char * name); 103 103 104 104 /** Translates the character string to the socket type number. … … 107 107 * @returns ESOCKNOSUPPORTED if the socket type is not supported. 108 108 */ 109 int parse_socket_type(const char * name);109 extern int parse_socket_type(const char * name); 110 110 111 111 /** Prints the parameter unrecognized message and the application help. … … 113 113 * @param[in] parameter The parameter name. 114 114 */ 115 void print_unrecognized(int index, const char * parameter);115 extern void print_unrecognized(int index, const char * parameter); 116 116 117 117 #endif
Note:
See TracChangeset
for help on using the changeset viewer.