GEL  0.99
gel_shared.c File Reference
#include <config.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <stdio.h>
#include "gel_mem.h"
#include <ltdl.h>
#include "gel_private.h"
#include <gel/gel_elf.h>

Macros

#define TRACE(stat)   /*stat*/
 
#define DLHANDLE   lt_dlhandle
 
#define DLOPEN(p)   lt_dlopen(p)
 
#define DLSYM(h, i)   lt_dlsym(h, i)
 
#define DLCLOSE(h)   lt_dlclose(h)
 

Functions

void gel_load_plugins (gel_platform_t *f, const char *plugpath, int quiet)
 
void gel_unload_plugins (gel_platform_t *pf)
 

Variables

arch_plugin_t null_plugin_arch
 
sys_plugin_t null_plugin_sys
 
int gel_ver = 1
 

Macro Definition Documentation

◆ DLCLOSE

#define DLCLOSE (   h)    lt_dlclose(h)

◆ DLHANDLE

#define DLHANDLE   lt_dlhandle

◆ DLOPEN

#define DLOPEN (   p)    lt_dlopen(p)

◆ DLSYM

#define DLSYM (   h,
 
)    lt_dlsym(h, i)

◆ TRACE

#define TRACE (   stat)    /*stat*/

Function Documentation

◆ gel_load_plugins()

void gel_load_plugins ( gel_platform_t f,
const char *  plugpath,
int  quiet 
)

Load the plugins required by the current binary.

Parameters
fPlatform to fill.
plugpathPath list to find the plugins.
quietIf not 0, doesn't display any warning.

◆ gel_unload_plugins()

void gel_unload_plugins ( gel_platform_t pf)

Unload the plugins.

Parameters
pfPlatform to work on.

Variable Documentation

◆ gel_ver

int gel_ver = 1

Current kernel version.

◆ null_plugin_arch

arch_plugin_t null_plugin_arch
extern

Null plugin for architecture.

◆ null_plugin_sys

sys_plugin_t null_plugin_sys
extern

Null plugin for architecture.