Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
Data Structures | Functions
URLSessionUploadTask.h File Reference

Use upload tasks to send files directly from disk. More...

#include <stdio.h>
#include <Objectively/Data.h>
#include <Objectively/URLSessionTask.h>

Go to the source code of this file.

Data Structures

struct  URLSessionUploadTask
 Use upload tasks to send files directly from disk. More...
 

Functions

OBJECTIVELY_EXPORT Class_URLSessionUploadTask (void)
 

Detailed Description

Use upload tasks to send files directly from disk.

Definition in file URLSessionUploadTask.h.

Function Documentation

◆ _URLSessionUploadTask()

OBJECTIVELY_EXPORT Class * _URLSessionUploadTask ( void  )

Definition at line 87 of file URLSessionUploadTask.c.

87 {
88 static Class *clazz;
89 static Once once;
90
91 do_once(&once, {
92 clazz = _initialize(&(const ClassDef) {
93 .name = "URLSessionUploadTask",
94 .superclass = _URLSessionTask(),
95 .instanceSize = sizeof(URLSessionUploadTask),
96 .interfaceOffset = offsetof(URLSessionUploadTask, interface),
97 .interfaceSize = sizeof(URLSessionUploadTaskInterface),
99 });
100 });
101
102 return clazz;
103}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void initialize(Class *clazz)
long Once
The Once type.
Definition: Once.h:37
#define do_once(once, block)
Executes the given block at most one time.
Definition: Once.h:43
ClassDefs are passed to _initialize via an archetype to initialize a Class.
Definition: Class.h:41
The runtime representation of a Class.
Definition: Class.h:95
Class * _URLSessionTask(void)
The URLSessionTask archetype.
Use upload tasks to send files directly from disk.