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

A cache for HTTP responses. More...

Go to the source code of this file.

Data Structures

struct  URLCache
 A cache for HTTP responses. More...
 

Functions

OBJECTIVELY_EXPORT Class_URLCache (void)
 

Detailed Description

A cache for HTTP responses.

Definition in file URLCache.h.

Function Documentation

◆ _URLCache()

OBJECTIVELY_EXPORT Class * _URLCache ( void  )

Definition at line 411 of file URLCache.c.

411 {
412 static Class *clazz;
413 static Once once;
414
415 do_once(&once, {
416 clazz = _initialize(&(const ClassDef) {
417 .name = "URLCache",
418 .superclass = _Object(),
419 .instanceSize = sizeof(URLCache),
420 .interfaceOffset = offsetof(URLCache, interface),
421 .interfaceSize = sizeof(URLCacheInterface),
423 });
424 });
425
426 return clazz;
427}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition Class.c:86
Class * _Object(void)
Definition Object.c:136
static void initialize(Class *clazz)
Definition URLCache.c:395
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 cache for HTTP responses.
Definition URLCache.h:44