a3a92abf1ca043aaaaaa79381afa316abaa00ace
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

1) /*
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

2)  * EtherPix library
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

3)  *
Stefan Schuermans removed version information...

Stefan Schuermans authored 13 years ago

4)  * Copyright 2010-2011 Stefan Schuermans <stefan schuermans info>
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

5)  *
6)  * This program is free software: you can redistribute it and/or modify
7)  * it under the terms of the GNU General Public License as published by
8)  * the Free Software Foundation, version 3 of the License.
9)  *
10)  *
11)  * This program is distributed in the hope that it will be useful,
12)  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13)  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14)  * GNU General Public License for more details.
15)  *
16)  * You should have received a copy of the GNU Lesser General Public License
17)  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18)  */
19) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

20) #ifndef ETP_PARSE_H
21) #define ETP_PARSE_H
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

22) 
23) #include <intern/net.h>
24) 
25) /**
26)  * \brief parse two comma-separated numbers
27)  *
28)  * \param[in] text text to parse
29)  * \param[out] no1 first number parsed from text
30)  * \param[out] no2 second number parsed from text
31)  * \param[out] end location in text where parsing ended
32)  * \return 0 in case of success, -1 in case of error
33)  */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

34) int etp_parse_two_nos(char *text, unsigned int *no1, unsigned int *no2,
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

35)                       char **end);
36) 
37) /**
38)  * \brief parse an address
39)  *
40)  * \param[in] test test to parse
41)  * \param[out] addr address parsed from text
42)  * \return 0 in case of success, -1 in case of error
43)  */
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

44) int etp_parse_addr(char *text, struct sockaddr_in *addr);
Stefan Schuermans v1.0.0

Stefan Schuermans authored 13 years ago

45) 
Stefan Schuermans rename "FlexiPix" to "Ether...

Stefan Schuermans authored 7 years ago

46) #endif /* #ifndef ETP_PARSE_H */