Objectively
Ultra-lightweight object oriented framework for GNU C.
Loading...
Searching...
No Matches
URLSession.h File Reference

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

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 414 of file URLSession.c.

414 {
415 static Class *clazz;
416 static Once once;
417
418 do_once(&once, {
419 clazz = _initialize(&(const ClassDef) {
420 .name = "URLSession",
421 .superclass = _Object(),
422 .instanceSize = sizeof(URLSession),
423 .interfaceOffset = offsetof(URLSession, interface),
424 .interfaceSize = sizeof(URLSessionInterface),
426 .destroy = destroy,
427 });
428 });
429
430 return clazz;
431}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition Class.c:86
Class * _Object(void)
Definition Object.c:136
static void destroy(Class *clazz)
Definition URLSession.c:381
static void initialize(Class *clazz)
Definition URLSession.c:391
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
A management context for loading resources via URLs.
Definition URLSession.h:57