MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/include/kudzu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/include/kudzu/alias.h
/* Copyright 2005 Red Hat, Inc.
 *
 * This software may be freely redistributed under the terms of the GNU
 * public license.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#ifndef _KUDZU_ALIAS_H
#define _KUDZU_ALIAS_H

#include <string.h>

struct alias {
	struct alias *next;
	char *match;
	char *module;
};

struct aliaslist {
	struct aliaslist *next;
	char *bus;
	struct alias *alias;
};

void freeAliasList(struct aliaslist *list);
struct aliaslist *readAliases(struct aliaslist *alist, char *filename, char *bustype);
char *aliasSearch(struct aliaslist *list, char *bus, char *device);

static inline struct aliaslist *getAliases(struct aliaslist *list, char *bus) {
	while (list && strcmp(bus,list->bus))
		list = list->next;
	return list;
}

#endif

Anon7 - 2021