File: module.c

package info (click to toggle)
usbmgr 1.0.0-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 460 kB
  • ctags: 323
  • sloc: ansic: 2,118; sh: 545; makefile: 154
file content (37 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 *  
 *  Copyright (c) by Shuu Yamaguchi <shuu@wondernetworkresources.com>
 *
 *  $Id: module.c,v 4.1 2001/01/04 15:01:14 shuu Exp $
 *
 *  Can be freely distributed and used under the terms of the GNU GPL.
 */
#include	<stdio.h>
#include	<stdlib.h>

#include	"usbmgr.h"

/*
 * points to link in first usbmodule
 */
struct node *module_ring = NULL;

#ifdef	NOT_EXPAND_MACRO

struct node *
create_module(char *name)
{
	return create_node_data_link(&module_ring,name,strlen(name)+1);
}

/*
 * search module in module_ring
 * should use #define
 */
struct node *
find_string_module(char *name)
{
	return find_string_node(module_ring,name);
}

#endif