summaryrefslogtreecommitdiffstats
path: root/pyudev.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed parsing of strings with multiple values in pyudevMartin Gracik2010-02-031-0/+5
| | | | | | | Some of the values which are returned by udev are strings, which contain more values for the same key. The string format is "val1 key=val2 key=val3 ...". This fix makes sure we split this string into a list of values.
* Fixed the problem with string to list properties (#560262)Martin Gracik2010-02-021-17/+17
| | | | | Some udev properties which should be a string were wrongly converted to a list of words.
* pyudev: explicitly specify all return value and argument types (#559394)Hans de Goede2010-02-011-16/+45
| | | | | | | | | | | | | | | | | We were relying on the ctypes behavior to default to int as return type for all functions. But most of the functions in question are not returning int's but pointers, which are 64 bit on s390x (and ppc64 and x86_64). Due to the fact that we were getting virtual addresses below 4G + the C calling conventions on x86_64 making it not matter when passing in an 32 bit int instead of a 64 bit one, as long as the 32 bit one represent the correct number, we got away with this on x86_64 (unfortunately really). This patch very likely also fixes #560035. Note I also threw in a traceback fix in the same codepath, baseudev assumes that devices always have a DEVLINKS property, which is not true for for example network devices.
* Make sure we always check /lib64 and /lib in find_library (#555669).David Cantrell2010-01-271-3/+3
| | | | | LD_LIBRARY_PATH ended up being /tmp/updates on my test system, so make sure we always check the default library paths in find_library().
* Added the libudev python bindingsMartin Gracik2009-11-181-0/+191
Also rewrote the baseudev.py to use the bindings instead of parsing the udev db file