~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to src/include/modpriv.h

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20091123035737-zsgtzhfych8hir68
Tags: 2.1.7+dfsg-1
* Adopting the package, closes: #536623.
* New upstream version, closes: #513484.
  + Fixes the blooper in unlang evaluation logic, closes: #526175.
* Used quilt (and added README.source), and moved upstream file patching
  into debian/patches/. The source is no longer in collab-maint git
  (to make it simpler for me to finally get this out the door), but
  kept the .gitignore should we need that again.
* Dropped the dialup_admin/bin/backup_radacct patch (integrated upstream).
* Dropped the raddb/Makefile patch (problem no longer exists upstream).
* Dropped the lib/packet.c lib/radius.c main/listen.c patches (was from
  upstream 2.0.5 anyway).
* Dropped references to otp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Dropped references to snmp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Ship /etc/freeradius/modules/* in the freeradius package.
* Stop shipping sites-enabled symlinks in the package and instead create
  them only on initial install, thanks to Matej Vela, closes: #533396.
* Add export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" to the init script
  at the request of John Morrissey, closes: #550143.
* Stop installing /var/run/freeradius in the package to silence Lintian.
  The init script already recreates it at will.
* Remove executable bit from example.pl to silence Lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* modpriv.h: Stuff needed by both modules.c and modcall.c, but should not be
2
2
 * accessed from anywhere else.
3
3
 *
4
 
 * Version: $Id: modpriv.h,v 1.8 2007/11/23 09:06:05 aland Exp $ */
 
4
 * Version: $Id$ */
 
5
#ifndef FR_MODPRIV_H
 
6
#define FR_MODPRIV_H
 
7
 
5
8
#include <freeradius-devel/radiusd.h>
6
9
#include <freeradius-devel/modules.h>
 
10
 
 
11
#ifndef WITHOUT_LIBLTDL
7
12
#include "ltdl.h"
 
13
#else
 
14
typedef void *lt_dlhandle;
 
15
 
 
16
lt_dlhandle lt_dlopenext(const char *name);
 
17
void *lt_dlsym(lt_dlhandle handle, const char *symbol);
 
18
int lt_dlclose(lt_dlhandle handle);
 
19
const char *lt_dlerror(void);
 
20
 
 
21
#define LTDL_SET_PRELOADED_SYMBOLS(_x)
 
22
#define lt_dlinit(_x) (0)
 
23
#define lt_dlexit(_x)
 
24
#define lt_dlsetsearchpath(_x)
 
25
#endif
8
26
 
9
27
/*
10
28
 *      Keep track of which modules we've loaded.
15
33
        lt_dlhandle             handle;
16
34
} module_entry_t;
17
35
 
 
36
typedef struct fr_module_hup_t fr_module_hup_t;
 
37
 
18
38
/*
19
39
 *      Per-instance data structure, to correlate the modules
20
40
 *      with the instance names (may NOT be the module names!),
27
47
#ifdef HAVE_PTHREAD_H
28
48
        pthread_mutex_t         *mutex;
29
49
#endif
30
 
        void                    *old_insthandle[16];
 
50
        CONF_SECTION            *cs;
 
51
        int                     dead;
 
52
        fr_module_hup_t         *mh;
31
53
} module_instance_t;
32
54
 
33
 
module_instance_t *find_module_instance(CONF_SECTION *, const char *instname);
 
55
module_instance_t *find_module_instance(CONF_SECTION *, const char *instname,
 
56
                                        int do_link);
 
57
int module_hup_module(CONF_SECTION *cs, module_instance_t *node, time_t when);
 
58
#endif  /* FR_MODPRIV_H */