xos_http.h.svn-base

来自「brew头文件分析」· SVN-BASE 代码 · 共 70 行

SVN-BASE
70
字号
//**************************************************************
//Copyright (C), 2008-2008, AnyLook Co., Ltd.
//File name:    xOS_Http.h
//Author:       AnyLook
//Version:      1.0
//Date:       2008/07/31
//Description:
//    xOS Include file
//Others: 
//Function List: 
//<Name>        <desc>
//Simple        
//History: 
//<author>      <time>      <version >  <desc>
// AnyLook     2008/07/31       1.0       build this moudle  
//**************************************************************


#ifndef _xOS_Http_H
#define _xOS_Http_H




#ifdef __cplusplus
extern "C" {
#endif


#include "xOS_Http_VTBL.h"

/*
 * Reads data from an HTTP file/page source.
 * @param auth optionally specifies simple authentication authrozation,
 * of the form user:pass.  Leave it NULL for no auth.
 * @param host is the server, like "burningsmell.org".  Omit the HTTP.
 * @param path is the file, like "/index.html".  / is needed.
 * @param port is the HTTP port.  Standard port is 80.
 */

static INLINE xOS_RWops *xOS_Http_RWFromHTTP(const char *auth, const char *host,
                                             const char *path, Uint16 port, 
                                             int size, char *strsize)
{
    if (GETHTTP(g_pxOSList))
    {
        return GETHTTP(g_pxOSList)->RWFromHTTP(auth, host, path, port, 
											size, strsize);
    }
    return 0;
}


static INLINE xOS_RWops *xOS_Http_RWFromFile(const char *file, const char *mode)
{
    if (GETHTTP(g_pxOSList))
    {
        return GETHTTP(g_pxOSList)->RWFromFile(file, mode);
    }
    return 0;
}


#ifdef __cplusplus
}
#endif

#endif //_xOS_Http_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?