libdevattr - Visibility change, stop memory waste
authorAlex Hornung <ahornung@gmail.com>
Sat, 17 Jul 2010 08:46:10 +0000 (09:46 +0100)
committerAlex Hornung <ahornung@gmail.com>
Sat, 17 Jul 2010 08:54:47 +0000 (09:54 +0100)
commit3bbbc629a1226c53dfdeeb2ea6319b4c0fb8c94c
tree193893d5bbdc38cbc0d3c91055d387af39732102
parentb262ad55581bccb7d48825fc2887738e7efdb276
libdevattr - Visibility change, stop memory waste

* Change the visibility of some function prototypes in devattr.h to be
  only visible from within libdevattr (or when LIBDEVATTR_INTERNAL is
  specified).

* Stop wasting memory when reading the socket. Since we receive the size
  of the remaining data first, we can allocate exactly the right amount
  instead of wasting it big time by allocating 12MB no matter what.
lib/libdevattr/devattr.c
lib/libdevattr/devattr.h
lib/libdevattr/devattr_device.c
lib/libdevattr/devattr_enumerate.c
lib/libdevattr/devattr_monitor.c