~ubuntu-branches/ubuntu/precise/netatalk/precise

« back to all changes in this revision

Viewing changes to sys/solaris/linkage.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Rittau
  • Date: 2004-01-19 12:43:49 UTC
  • Revision ID: james.westby@ubuntu.com-20040119124349-es563jbp0hk0ae51
Tags: upstream-1.6.4
ImportĀ upstreamĀ versionĀ 1.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Linkage information.  Mostly this is Solaris specific, but not all.
 
3
 * Code to do real work is in other files, this file just has the crap
 
4
 * to get the real code loaded and called.
 
5
 */
 
6
 
 
7
#include <sys/types.h>
 
8
#include <sys/modctl.h>
 
9
#include <sys/cmn_err.h>
 
10
 
 
11
char    *netatalk_version = VERSION;
 
12
 
 
13
extern struct modldrv tpi_ldrv;
 
14
extern struct modldrv dlpi_lstrmod;
 
15
 
 
16
static struct modlinkage        ddp_linkage = {
 
17
    MODREV_1,
 
18
    {
 
19
        (void *)&tpi_ldrv,
 
20
        (void *)&dlpi_lstrmod,
 
21
        NULL,
 
22
    }
 
23
};
 
24
 
 
25
/*
 
26
 * While these are code, they're mostly related to linkage, so
 
27
 * we leave them here.
 
28
 */
 
29
    int
 
30
_init( void )
 
31
{
 
32
    cmn_err( CE_CONT, "?netatalk %s\n", netatalk_version );
 
33
    return( mod_install( &ddp_linkage ));
 
34
}
 
35
 
 
36
    int
 
37
 _info( struct modinfo *modinfop )
 
38
{
 
39
    return( mod_info( &ddp_linkage, modinfop ));
 
40
}
 
41
 
 
42
    int
 
43
_fini( void )
 
44
{
 
45
    return( mod_remove( &ddp_linkage ));
 
46
}