/*------------------------------------------------------------------------------ * * File: httpc.h * Description: http client public header file * * Copyright (C) 2010 Nintendo. All rights reserved. * These coded instructions, statements, and computer programs contain * proprietary information of Nintendo of America Inc. and/or Nintendo * Company Ltd., and are protected by Federal copyright law. They may * not be disclosed to third parties or copied or duplicated in any form, * in whole or in part, without the prior written consent of Nintendo. * *------------------------------------------------------------------------------ */ #ifndef __HTTPC_PUB_H__ #define __HTTPC_PUB_H__ #ifdef __cplusplus extern "C" { #endif #define HTTPC_ERROR (-1) #define HTTPC_SUCCESS (0) typedef enum { HTTPC_GET = 0x01, HTTPC_POST = 0x02, HTTPC_PUT = 0x03, HTTPC_HEAD = 0x04 } httpc_req_method_t; extern int httpc_lib_init (void); extern int httpc_lib_finish (void); extern int httpc_send_req (char *url, httpc_req_method_t method, int use_multi, char* outdata, int outdata_len, char *indata, int *indata_len); #ifdef __cplusplus } #endif #endif /* __HTTPC_PUB_H__ */