First public contribution.
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #include "liboil_wsd_solutions.h"
25 #include <pls.h> // For emulator WSD API
27 const TUid KLibOilUid3 = {0x2001101E}; // This is the UID of the library
29 extern "C" struct liboil_global_struct *liboil_ImpurePtr()
32 #if defined(__WINSCW__) || defined(__WINS__)
34 // Access the PLS of this process
35 struct liboil_global_struct* p = Pls<struct liboil_global_struct>(KLibOilUid3, &liboil_Init);
48 int liboil_Init(liboil_global_struct *g)
50 #if defined(__WINSCW__) || defined(__WINS__)
53 //g->GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g) = NULL;
54 g->GET_OIL_WSD_VAR_NAME(_class,abs_f32_f32,g).func = NULL;
55 g->GET_OIL_WSD_VAR_NAME(_class,abs_f32_f32,g).name = "abs_f32_f32";
56 g->GET_OIL_WSD_VAR_NAME(_class,abs_f32_f32,g).desc = NULL;
57 g->GET_OIL_WSD_VAR_NAME(_class,abs_f32_f32,g).test_func = NULL;
58 g->GET_OIL_WSD_VAR_NAME(_class,abs_f32_f32,g).first_impl = NULL;
59 g->GET_OIL_WSD_VAR_NAME(_class,abs_f32_f32,g).reference_impl = NULL;
60 g->GET_OIL_WSD_VAR_NAME(_class,abs_f32_f32,g).prototype = "uint8_t *dest, int dstr, int8_t *src, int sstr, int n" ;
72 extern "C" void _liboil_wsd_reset()
74 struct liboil_global_struct* p = Pls<struct liboil_global_struct>(KLibOilUid3, &liboil_Init);
77 memset(p,0,sizeof(struct liboil_global_struct));