/******************************************************************************
* Author: Alexey Melnichuk <mimir@newmail.ru>
*
* Copyright (C) 2014 Alexey Melnichuk <mimir@newmail.ru>
*
* Licensed according to the included 'LICENSE' document
*
* This file is part of lua-lcurl library.
******************************************************************************/
#ifndef _LCHTTPPOST_H_
#define _LCHTTPPOST_H_
#include "lcurl.h"
#include "lcutils.h"
#include <stdlib.h>
#define LCURL_HPOST_STREAM_MAGIC 0xAA
typedef struct lcurl_hpost_stream_tag{
unsigned char magic;
lua_State **L;
lcurl_callback_t rd;
lcurl_read_buffer_t rbuffer;
struct lcurl_hpost_stream_tag *next;
}lcurl_hpost_stream_t;
typedef struct lcurl_hpost_tag{
lua_State *L;
struct curl_httppost *post;
struct curl_httppost *last;
int storage;
int err_mode;
lcurl_hpost_stream_t *stream;
}lcurl_hpost_t;
int lcurl_hpost_create(lua_State *L, int error_mode);
void lcurl_hpost_initlib(lua_State *L, int nup);
lcurl_hpost_t *lcurl_gethpost_at(lua_State *L, int i);
#define lcurl_gethpost(L) lcurl_gethpost_at((L),1)
#endif
# |
Change |
User |
Description |
Committed |
|
#1
|
26291 |
Joel Van Eenwyk |
Merged //guest/joel_van_eenwyk/p4/2018-2/ to //guest/joel_van_eenwyk/p4api-net/main/p4api/ |
|
|
//guest/joel_van_eenwyk/p4/2018-2/script/libs/lua-curlv3/lchttppost.h |
#1
|
26288 |
Joel Van Eenwyk |
"Forking branch 2018-2 of perforce_software-p4 to joel_van_eenwyk-p4." |
|
|
//guest/perforce_software/p4/2018-2/script/libs/lua-curlv3/lchttppost.h |
#1
|
25096 |
Nicholas Poole |
Populate //stream/workshop. |
|
|