view GEMBASSY-1.0.3/include/gpost.h @ 0:8300eb051bea draft

Initial upload
author ktnyt
date Fri, 26 Jun 2015 05:19:29 -0400
parents
children
line wrap: on
line source

#ifndef gpost_h
#define gpost_h

#include "emboss.h"
#include "curl/curl.h"
#include "curl/easy.h"

typedef struct{
  char* memory;
  size_t size;
} Memory;

/*
** Prototype definitions
*/

AjBool gFilePostCC(char* url, char* filename, AjPStr* string);
AjBool gFilePostCS(char* url, AjPStr filename, AjPStr* string);
AjBool gFilePostSS(AjPStr url, AjPStr filename, AjPStr* string);
size_t curl_write(void *ptr, size_t size, size_t nmemb, void *stream);

#endif