loader: Remove a silly layer of reference counting

libdl will refcount objects for us just fine, thanks.

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2010-09-17 11:19:17 -04:00
commit ab7f057ce9
4 changed files with 51 additions and 217 deletions

View file

@ -57,21 +57,6 @@
#include <X11/Xfuncproto.h>
#include <X11/Xmd.h>
/* LoadModule proc flags; LD_FLAG_GLOBAL adds symbols to global
* namespace, default is to keep symbols local to module. */
#define LD_FLAG_GLOBAL 1
typedef struct _loader *loaderPtr;
/* Each module loaded has a loaderRec */
typedef struct _loader {
int handle; /* Unique id used to remove symbols from
* this module when it is unloaded */
char *name;
void *private; /* format specific data */
loaderPtr next;
} loaderRec;
/* Compiled-in version information */
typedef struct {
int xf86Version;
@ -86,7 +71,6 @@ extern const ModuleVersions LoaderVersionInfo;
extern unsigned long LoaderOptions;
/* Internal Functions */
int LoaderOpen(const char *, int *, int *, int *, int);
int LoaderHandleOpen(int);
void * LoaderOpen(const char *, int *, int *);
#endif /* _LOADER_H */