KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/22697/root/usr/include/kudzu/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/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