Subversion Repositories Kolibri OS

Rev

Rev 4358 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4358 Serge 1
/**************************************************************************
2
 *
3
 * Copyright 2009 VMware, Inc.
4
 * Copyright 1999-2008  Brian Paul
5
 * All Rights Reserved.
6
 *
7
 * Permission is hereby granted, free of charge, to any person obtaining a
8
 * copy of this software and associated documentation files (the
9
 * "Software"), to deal in the Software without restriction, including
10
 * without limitation the rights to use, copy, modify, merge, publish,
11
 * distribute, sub license, and/or sell copies of the Software, and to
12
 * permit persons to whom the Software is furnished to do so, subject to
13
 * the following conditions:
14
 *
15
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18
 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
19
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
21
 * USE OR OTHER DEALINGS IN THE SOFTWARE.
22
 *
23
 * The above copyright notice and this permission notice (including the
24
 * next paragraph) shall be included in all copies or substantial portions
25
 * of the Software.
26
 *
27
 **************************************************************************/
28
 
29
 
30
#include "pipe/p_config.h"
31
#include "pipe/p_compiler.h"
32
 
33
 
34
#include "u_dl.h"
35
#include "u_pointer.h"
36
 
5080 serge 37
void* load_library(const char *name);
38
void *get_proc_address(void *module, const char *proc_name);
4358 Serge 39
 
40
struct util_dl_library *
41
util_dl_open(const char *filename)
42
{
5080 serge 43
   return (struct util_dl_library *)load_library(filename);
4358 Serge 44
}
45
 
46
 
47
util_dl_proc
48
util_dl_get_proc_address(struct util_dl_library *library,
49
                         const char *procname)
50
{
5080 serge 51
   return (util_dl_proc)get_proc_address(library, procname);
4358 Serge 52
}
53
 
54
 
55
void
56
util_dl_close(struct util_dl_library *library)
57
{
58
   (void)library;
59
}
60
 
61
 
62
const char *
63
util_dl_error(void)
64
{
65
   return "unknown error";
66
}