OSDN Git Service

add mbed.html
[mimic/MiMicSDK.git] / lib / src / net / apipa / NyLPC_cApipa.h
1 /*********************************************************************************\r
2  * PROJECT: MiMic\r
3  * --------------------------------------------------------------------------------\r
4  *\r
5  * This file is part of MiMic\r
6  * Copyright (C)2011-2013 Ryo Iizuka\r
7  *\r
8  * MiMic is free software: you can redistribute it and/or modify\r
9  * it under the terms of the GNU Lesser General Public License as published\r
10  * by the Free Software Foundation, either version 3 of the License, or\r
11  * (at your option) any later version.\r
12  *\r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU Lesser General Public License\r
19  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
20  *\r
21  * For further information please contact.\r
22  *      http://nyatla.jp/\r
23  *      <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
24  *\r
25  *********************************************************************************/\r
26 #ifndef NYLPC_CAPIPA_H_\r
27 #define NYLPC_CAPIPA_H_\r
28 \r
29 #ifdef __cplusplus\r
30 extern "C" {\r
31 #endif /* __cplusplus */\r
32 \r
33 #include "NyLPC_stdlib.h"\r
34 #include "NyLPC_net.h"\r
35 \r
36 typedef struct NyLPC_cApipa NyLPC_TcApipa_t;\r
37 \r
38 struct NyLPC_cApipa\r
39 {\r
40         NyLPC_TUInt32 _seed;\r
41 };\r
42 void NyLPC_cApipa_initialize(NyLPC_TcApipa_t* i_inst);\r
43 \r
44 #define NyLPC_cApipa_finalize(i_inst)\r
45 \r
46 \r
47 /**\r
48  * i_cfgにAutoIPのアドレスを取得します。\r
49  * この関数はuipを操作します。uipServiceは停止中である必要があります。\r
50  */\r
51 NyLPC_TBool NyLPC_cApipa_requestAddr(NyLPC_TcApipa_t* i_inst,NyLPC_TcIPv4Config_t* i_cfg,NyLPC_TInt16 i_repeat);\r
52 \r
53 #ifdef __cplusplus\r
54 }\r
55 #endif /* __cplusplus */\r
56 #endif /* NYLPC_CAPIPA_H_ */\r