Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
amiga_platform.h
Go to the documentation of this file.
1
/*
2
** Copyright 2014-2016 The Earlham Institute
3
**
4
** Licensed under the Apache License, Version 2.0 (the "License");
5
** you may not use this file except in compliance with the License.
6
** You may obtain a copy of the License at
7
**
8
** http://www.apache.org/licenses/LICENSE-2.0
9
**
10
** Unless required by applicable law or agreed to in writing, software
11
** distributed under the License is distributed on an "AS IS" BASIS,
12
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
** See the License for the specific language governing permissions and
14
** limitations under the License.
15
*/
16
23
#ifndef AMIGA_PLATFORM_H
24
#define AMIGA_PLATFORM_H
25
26
#include <exec/types.h>
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
35
void
InitAmigaAllocator
(
void
);
36
37
41
void
ExitAmigaAllocator
(
void
);
42
43
50
void
*
AllocateAmigaMemory
(uint32 size);
51
52
60
void
*
AllocateAmigaZeroedArray
(uint32 num_elements, uint32 size);
61
73
void
*
ReallocateAmigaMemory
(
void
*old_p, uint32 new_size, uint32 old_size);
74
80
void
FreeAmigaMemory
(
void
*mem_p);
81
82
#ifdef __cplusplus
83
}
84
#endif
85
86
#endif
/*#ifndef AMIGA_PLATFORM_H */
87
InitAmigaAllocator
void InitAmigaAllocator(void)
Initialise the memory allocator for Amiga OS4.
FreeAmigaMemory
void FreeAmigaMemory(void *mem_p)
Free some memory created by AllocAmigaMemory() or AllocAmigaMemoryArray()
AllocateAmigaMemory
void * AllocateAmigaMemory(uint32 size)
Allocate a block of memory of the given size on AmigaOS 4.x.
ExitAmigaAllocator
void ExitAmigaAllocator(void)
Free any resources used by the memory allocator for AmigaOS 4.x.
AllocateAmigaZeroedArray
void * AllocateAmigaZeroedArray(uint32 num_elements, uint32 size)
Allocate an array of memory blocks on AmigaOS 4.x.
ReallocateAmigaMemory
void * ReallocateAmigaMemory(void *old_p, uint32 new_size, uint32 old_size)
Reallocate a memory block on AmigaOS 4.x.
core
shared
util
include
amiga_platform.h
Generated on Mon Feb 26 2024 17:00:09 for Grassroots Infrastructure by
1.8.16