|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "lowmem.h" |
|
21 #include "glibbackend.h" |
|
22 #include <glowmem.h> |
|
23 |
|
24 EXPORT_C mem_info * _get_thread_specific_data() |
|
25 { |
|
26 return get_thread_specific_data(); |
|
27 } |
|
28 |
|
29 |
|
30 /* This function sets the thread specfic data which is of the type * |
|
31 * struct mem_info.The function return 0 in case of success and a * |
|
32 * non zero value in case of failure. * |
|
33 */ |
|
34 EXPORT_C int _set_thread_specific_data(mem_info *m) |
|
35 { |
|
36 return set_thread_specific_data(m); |
|
37 } |
|
38 |
|
39 /* This function pushes the pointer on the top of the stack and returns * |
|
40 * the new top of the stack * |
|
41 */ |
|
42 EXPORT_C int _push(cleanUpStack *cs,void *ptr) |
|
43 { |
|
44 return push(cs,ptr); |
|
45 } |
|
46 |
|
47 /* This functions pops the pointer at the top of the stack and saves * |
|
48 * the pointer in arg ptr. The top of the stack in returned. * |
|
49 */ |
|
50 EXPORT_C void *_pop(cleanUpStack *cs) |
|
51 { |
|
52 return pop(cs); |
|
53 } |
|
54 |
|
55 /* This function searches and deleted a member in the stack and returns * |
|
56 * the top of the stack * |
|
57 */ |
|
58 EXPORT_C void _findAndDestroy(cleanUpStack *cs,void *ptr) |
|
59 { |
|
60 findAndDestroy(cs,ptr); |
|
61 } |
|
62 |
|
63 /* This function deletes the entire stack. It also calls free on all * |
|
64 * the pointer that are stored in the stack * |
|
65 */ |
|
66 EXPORT_C void _destroCleanUpStack(cleanUpStack *cs) |
|
67 { |
|
68 destroyCleanUpStack(cs); |
|
69 } |
|
70 |
|
71 /* This function deletes the stack and frees all the memory * |
|
72 */ |
|
73 EXPORT_C void _clearCleanUpStack(cleanUpStack *cs) |
|
74 { |
|
75 clearCleanUpStack(cs); |
|
76 } |
|
77 |
|
78 EXPORT_C void * _pAlloc(size_t size) |
|
79 { |
|
80 return pAlloc(size); |
|
81 } |
|
82 |
|
83 EXPORT_C void _dummy1() |
|
84 { |
|
85 |
|
86 } |
|
87 |
|
88 EXPORT_C void _dummy2() |
|
89 { |
|
90 |
|
91 } |
|
92 |
|
93 EXPORT_C void _dummy3() |
|
94 { |
|
95 |
|
96 } |