Lucas De Marchi
0c010fae10
Move libkmod-util.c to convenience util lib
...
Share more code between tools and libkmod. underscores() in kmod-depmod
can not use the same function as in the lib, so rename it.
2011-12-28 13:33:26 -02:00
Lucas De Marchi
a4848e249f
Move util functions to libkmod-util.c
...
These allow them to be later shared with tools.
2011-12-27 18:11:58 -02:00
Lucas De Marchi
b148b8606a
Add helper alias_normalize()
2011-12-13 10:41:18 -02:00
Lucas De Marchi
cb451f35d9
Change licenses
...
libkmod is under LGPL 2.1 or later
tools/* are under GPL
2011-12-12 18:24:35 -02:00
Lucas De Marchi
28c175edd1
coding style: be consistent with blank lines
2011-12-12 11:52:59 -02:00
Gustavo Sverzut Barbieri
bf8cf1483f
fix string replace.
...
configure files with this would fail:
options wl x=1
were being handled as " =1".
2011-12-11 20:58:21 -02:00
Lucas De Marchi
4eb2c0fca1
Fix abs path helper function
2011-12-08 11:15:24 -02:00
Lucas De Marchi
06363cc126
Add helper path_make_absolute_cwd()
2011-12-07 13:51:40 -02:00
Lucas De Marchi
3a468809b8
Add helper path_is_absolute()
2011-12-07 13:50:52 -02:00
Lucas De Marchi
afca78015b
Add helper strchr_replace()
2011-12-07 10:59:44 -02:00
Gustavo Sverzut Barbieri
f12ae3c438
kmod_module: extended information gathering.
...
provide means to get:
* refcount
* initstate
* holders
* sections
this can be used to individually query properties from modules,
similar to /proc/modules (kmod_loaded / kmod_loaded_module).
2011-12-04 17:24:08 -02:00
Lucas De Marchi
e22c85f357
Add memdup() helper
2011-12-03 04:07:15 -02:00
Lucas De Marchi
7e317da3c9
Add startswith() helper function
2011-11-30 19:20:19 -02:00
Lucas De Marchi
8185fc91e2
Add underscores() helper to replace - with _
2011-11-30 02:14:33 -02:00
Lucas De Marchi
4462c4ac60
Add getline_wrapped() to parse config files
...
Basically copied from module-init-tools
2011-11-29 18:05:43 -02:00