Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
Macros | Functions
URLSessionConfiguration.c File Reference
#include <assert.h>
#include "URLSessionConfiguration.h"

Go to the source code of this file.

Macros

#define _Class   _URLSessionConfiguration
 

Functions

Class_URLSessionConfiguration (void)
 
static void dealloc (Object *self)
 
static URLSessionConfigurationinit (URLSessionConfiguration *self)
 
static void initialize (Class *clazz)
 

Macro Definition Documentation

◆ _Class

#define _Class   _URLSessionConfiguration

Definition at line 12 of file URLSessionConfiguration.c.

Function Documentation

◆ _URLSessionConfiguration()

Class * _URLSessionConfiguration ( void  )

Definition at line 62 of file URLSessionConfiguration.c.

62 {
63 static Class *clazz;
64 static Once once;
65
66 do_once(&once, {
67 clazz = _initialize(&(const ClassDef) {
68 .name = "URLSessionConfiguration",
69 .superclass = _Object(),
70 .instanceSize = sizeof(URLSessionConfiguration),
71 .interfaceOffset = offsetof(URLSessionConfiguration, interface),
72 .interfaceSize = sizeof(URLSessionConfigurationInterface),
74 });
75 });
76
77 return clazz;
78}
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 * _Object(void)
The Object archetype.
Definition: Object.c:136
Configuration bundle for URLSession.

◆ dealloc()

static void dealloc ( Object self)
static
See also
Object::dealloc(Object *)

Definition at line 19 of file URLSessionConfiguration.c.

19 {
20
22
23 release(this->credentials.username);
24 release(this->credentials.password);
25 release(this->httpHeaders);
26
27 super(Object, self, dealloc);
28}
ident release(ident obj)
Atomically decrement the given Object's reference count. If the resulting reference count is 0,...
Definition: Class.c:196
#define super(type, obj, method,...)
Object is the root Class of The Objectively Class hierarchy.
Definition: Object.h:46
void dealloc(Object *self)
Frees all resources held by this Object.
Definition: Array.c:50

◆ init()

static URLSessionConfiguration * init ( URLSessionConfiguration self)
static

Definition at line 36 of file URLSessionConfiguration.c.

36 {
37
38 self = (URLSessionConfiguration *) super(Object, self, init);
39 if (self) {
40 // wut
41 }
42
43 return self;
44}
Condition * init(Condition *self)
Initializes this Condition.
Definition: Condition.c:67

◆ initialize()

static void initialize ( Class clazz)
static
See also
Class::initialize(Class *)

Definition at line 51 of file URLSessionConfiguration.c.

51 {
52
53 ((ObjectInterface *) clazz->interface)->dealloc = dealloc;
54
55 ((URLSessionConfigurationInterface *) clazz->interface)->init = init;
56}
ident interface
The interface of the Class.
Definition: Class.h:105