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

Uniform Resource Locators (RFC 3986). More...

Go to the source code of this file.

Data Structures

struct  URL
 Uniform Resource Locators (RFC 3986). More...
 

Functions

OBJECTIVELY_EXPORT Class_URL (void)
 

Detailed Description

Uniform Resource Locators (RFC 3986).

Definition in file URL.h.

Function Documentation

◆ _URL()

OBJECTIVELY_EXPORT Class * _URL ( void  )

Definition at line 248 of file URL.c.

248 {
249 static Class *clazz;
250 static Once once;
251
252 do_once(&once, {
253 clazz = _initialize(&(const ClassDef) {
254 .name = "URL",
255 .superclass = _Object(),
256 .instanceSize = sizeof(URL),
257 .interfaceOffset = offsetof(URL, interface),
258 .interfaceSize = sizeof(URLInterface),
260 .destroy = destroy,
261 });
262 });
263
264 return clazz;
265}
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 URL.c:220
static void initialize(Class *clazz)
Definition URL.c:228
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
Uniform Resource Locators (RFC 3986).
Definition URL.h:44