Lucas De Marchi
904c63aa96
Fix initialization of kernel modules dir
2011-11-30 20:27:50 -02:00
Lucas De Marchi
7f3eb0cced
Add lookup to create modules list from alias
...
We return a kmod_list when searching for an alias. Right now, it only
search for aliases in config files.
To use it, we create a list:
list = NULL;
kmod_module_new_from_lookup(..., &list);
And iterate over it to get the modules and their details:
kmod_list_foreach(l, list) {
struct kmod_mod *mod = kmod_module_get_module(l);
...
... kmod_module_get_name(mod);
... kmod_module_get_path(mod);
}
Aliases might contain globs and are match by using fnmatch().
2011-11-30 19:03:41 -02:00
Lucas De Marchi
7c2ab358fd
Add support for parsing config files
...
Right now only alias keyword is treated.
2011-11-29 18:07:43 -02:00
Lucas De Marchi
191ab4b9e0
Fix wrong copyright
...
I'm the author, not the copyright owner.
2011-11-28 16:59:06 -02:00
Lucas De Marchi
1b2e26a1e2
Back to logging without \n
...
It possibly breaks when not logging to stderr
2011-11-28 11:28:18 -02:00
Lucas De Marchi
9df4bda566
When logging to stderr, put a \n by default
2011-11-25 01:07:04 -02:00
Lucas De Marchi
ae6df84a3c
Make log function uppercase
...
The worst case is the err() macro. Usually err is used as a variable,
which clashes with this macro.
2011-11-25 01:05:30 -02:00
Lucas De Marchi
221631d511
Accept dir where we should lookup for modules
2011-11-24 23:20:42 -02:00
Lucas De Marchi
4d1e689ada
Format refcount handling
2011-11-24 23:09:39 -02:00
Lucas De Marchi
6d177553dc
Constify API
2011-11-23 12:28:23 -02:00
Lucas De Marchi
8b69b37629
Remove leftover declarations
2011-11-23 11:50:27 -02:00
Lucas De Marchi
9d77b96c7a
Remove unused functions
2011-11-21 15:15:54 -02:00
Lucas De Marchi
52a7704f67
Make kmod_new return a pointer
2011-11-21 15:15:54 -02:00
Lucas De Marchi
e4351b053f
Convert spaces to tabs
2011-11-21 15:15:54 -02:00
Lucas De Marchi
586fc304d8
Rename libabc to libkmod
2011-11-21 14:35:35 -02:00