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

A management context for loading resources via URLs. More...

#include <Objectively/Condition.h>
#include <Objectively/Lock.h>
#include <Objectively/MutableArray.h>
#include <Objectively/Object.h>
#include <Objectively/Thread.h>
#include <Objectively/URLRequest.h>
#include <Objectively/URLResponse.h>
#include <Objectively/URLSessionConfiguration.h>
#include <Objectively/URLSessionDataTask.h>
#include <Objectively/URLSessionDownloadTask.h>
#include <Objectively/URLSessionTask.h>
#include <Objectively/URLSessionUploadTask.h>

Go to the source code of this file.

Data Structures

struct  URLSession
 A management context for loading resources via URLs. More...
 

Functions

OBJECTIVELY_EXPORT Class_URLSession (void)
 

Detailed Description

A management context for loading resources via URLs.

Definition in file URLSession.h.

Function Documentation

◆ _URLSession()

OBJECTIVELY_EXPORT Class * _URLSession ( void  )

Definition at line 389 of file URLSession.c.

389 {
390 static Class *clazz;
391 static Once once;
392
393 do_once(&once, {
394 clazz = _initialize(&(const ClassDef) {
395 .name = "URLSession",
396 .superclass = _Object(),
397 .instanceSize = sizeof(URLSession),
398 .interfaceOffset = offsetof(URLSession, interface),
399 .interfaceSize = sizeof(URLSessionInterface),
401 .destroy = destroy,
402 });
403 });
404
405 return clazz;
406}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void destroy(Class *clazz)
Definition: URLSession.c:378
static void initialize(Class *clazz)
Definition: URLSession.c:356
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 * _Object(void)
The Object archetype.
Definition: Object.c:136
A management context for loading resources via URLs.
Definition: URLSession.h:57