Changeset 59ecd4a3 in mainline for uspace/app/netecho/parse.h


Ignore:
Timestamp:
2010-04-04T21:41:47Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/netecho/parse.h

    r36a75a2 r59ecd4a3  
    3838#define __NET_APP_PARSE__
    3939
    40 #include "../include/socket.h"
     40#include <socket.h>
    4141
    4242/** Translates the character string to the address family number.
     
    4545 *  @returns EAFNOSUPPORTED if the address family is not supported.
    4646 */
    47 int parse_address_family(const char * name);
     47extern int parse_address_family(const char * name);
    4848
    4949/** Parses the next parameter as an integral number.
     
    6060 *  @returns EINVAL if the parameter is in wrong format.
    6161 */
    62 int parse_parameter_int(int argc, char ** argv, int * index, int * value, const char * name, int offset);
     62extern int parse_parameter_int(int argc, char ** argv, int * index, int * value, const char * name, int offset);
    6363
    6464/** Parses the next named parameter as an integral number.
     
    7878 *  @returns ENOENT if the parameter name has not been found.
    7979 */
    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));
     80extern int parse_parameter_name_int(int argc, char ** argv, int * index, int * value, const char * name, int offset, int (*parse_value)(const char * value));
    8181
    8282/** Parses the next parameter as a character string.
     
    9393 *  @returns EINVAL if the parameter is missing.
    9494 */
    95 int parse_parameter_string(int argc, char ** argv, int * index, char ** value, const char * name, int offset);
     95extern int parse_parameter_string(int argc, char ** argv, int * index, char ** value, const char * name, int offset);
    9696
    9797/** Translates the character string to the protocol family number.
     
    100100 *  @returns EPFNOSUPPORTED if the protocol family is not supported.
    101101 */
    102 int parse_protocol_family(const char * name);
     102extern int parse_protocol_family(const char * name);
    103103
    104104/** Translates the character string to the socket type number.
     
    107107 *  @returns ESOCKNOSUPPORTED if the socket type is not supported.
    108108 */
    109 int parse_socket_type(const char * name);
     109extern int parse_socket_type(const char * name);
    110110
    111111/** Prints the parameter unrecognized message and the application help.
     
    113113 *  @param[in] parameter The parameter name.
    114114 */
    115 void print_unrecognized(int index, const char * parameter);
     115extern void print_unrecognized(int index, const char * parameter);
    116116
    117117#endif
Note: See TracChangeset for help on using the changeset viewer.