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

Use download tasks to save remote resources to file. More...

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

Go to the source code of this file.

Data Structures

struct  URLSessionDownloadTask
 Use download tasks to save remote resources to file. More...
 

Functions

OBJECTIVELY_EXPORT Class_URLSessionDownloadTask (void)
 

Detailed Description

Use download tasks to save remote resources to file.

Definition in file URLSessionDownloadTask.h.

Function Documentation

◆ _URLSessionDownloadTask()

OBJECTIVELY_EXPORT Class * _URLSessionDownloadTask ( void  )

Definition at line 77 of file URLSessionDownloadTask.c.

77 {
78 static Class *clazz;
79 static Once once;
80
81 do_once(&once, {
82 clazz = _initialize(&(const ClassDef) {
83 .name = "URLSessionDownloadTask",
84 .superclass = _URLSessionTask(),
85 .instanceSize = sizeof(URLSessionDownloadTask),
86 .interfaceOffset = offsetof(URLSessionDownloadTask, interface),
87 .interfaceSize = sizeof(URLSessionDownloadTaskInterface),
89 });
90 });
91
92 return clazz;
93}
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
Use download tasks to save remote resources to file.
Class * _URLSessionTask(void)
The URLSessionTask archetype.