-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoinit_uuid_base.c
50 lines (40 loc) · 1.25 KB
/
autoinit_uuid_base.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
** $Id$
** Generated by IDLTool 53.6
** Do not edit
**
** AutoInit stub for uuid
**
** Copyright (c) 2010 Hyperion Entertainment CVBA.
** All Rights Reserved.
*/
#include <libraries/uuid.h>
#include <interfaces/uuid.h>
#include <proto/exec.h>
#include <assert.h>
/****************************************************************************/
struct Library * uuidBase = NULL;
static struct Library * __uuidBase;
/****************************************************************************/
void uuid_base_constructor(void)
{
if (uuidBase != NULL)
{
return; /* Someone was quicker, e.g. an interface constructor */
}
__uuidBase = uuidBase = (struct Library *)IExec->OpenLibrary("uuid.library", 0L);
assert(uuidBase != NULL);
}
__attribute__((section(".ctors.zzzz"))) static void
(*uuid_base_constructor_ptr)(void) USED = uuid_base_constructor;
/****************************************************************************/
void uuid_base_destructor(void)
{
if (__uuidBase)
{
IExec->CloseLibrary((struct Library *)__uuidBase);
}
}
__attribute__((section(".dtors.zzzz"))) static void
(*uuid_base_destructor_ptr)(void) USED = uuid_base_destructor;
/****************************************************************************/