1 /*------------------------------------------------------------------------------ 2 * 3 * File: httpc.h 4 * Description: http client public header file 5 * 6 * Copyright (C) Nintendo. All rights reserved. 7 * These coded instructions, statements, and computer programs contain 8 * proprietary information of Nintendo of America Inc. and/or Nintendo 9 * Company Ltd., and are protected by Federal copyright law. They may 10 * not be disclosed to third parties or copied or duplicated in any form, 11 * in whole or in part, without the prior written consent of Nintendo. 12 * 13 *------------------------------------------------------------------------------ 14 */ 15 #ifndef __HTTPC_PUB_H__ 16 #define __HTTPC_PUB_H__ 17 18 #ifdef __cplusplus 19 extern "C" { 20 #endif 21 22 #define HTTPC_ERROR (-1) 23 #define HTTPC_SUCCESS (0) 24 25 typedef enum { 26 HTTPC_GET = 0x01, 27 HTTPC_POST = 0x02, 28 HTTPC_PUT = 0x03, 29 HTTPC_HEAD = 0x04 30 } httpc_req_method_t; 31 32 extern int httpc_lib_init (void); 33 extern int httpc_lib_finish (void); 34 extern int httpc_send_req (char *url, 35 httpc_req_method_t method, 36 int use_multi, 37 char* outdata, 38 int outdata_len, 39 char *indata, 40 int *indata_len); 41 42 #ifdef __cplusplus 43 } 44 #endif 45 46 #endif /* __HTTPC_PUB_H__ */ 47