Atrinik Client 2.5
Data Fields
curl_data Struct Reference

#include <curl.h>

Data Fields

char * memory
size_t size
char * url
SDL_mutex * mutex
SDL_Thread * thread
sint8 status

Detailed Description

cURL data.

Definition at line 34 of file curl.h.


Field Documentation

The data. Can be NULL in case we got no data from the url.

Definition at line 37 of file curl.h.

SDL_mutex* curl_data::mutex

Mutex to protect the data in this structure when accessed across threads.

Definition at line 48 of file curl.h.

Size of the data.

Definition at line 40 of file curl.h.

State of the data:

  • 0: still trying to get data (connecting to server, getting data, etc). While this is the state, no members of this structure should be accessed from the outside (at the very least not without mutex locking).
  • -1: An error occurred trying to get the data.
  • 1: cURL thread finished and the data is ready to be used.

Definition at line 61 of file curl.h.

SDL_Thread* curl_data::thread

The thread.

Definition at line 51 of file curl.h.

URL used.

Definition at line 43 of file curl.h.


The documentation for this struct was generated from the following file: