master - cleanup: self compilable headers
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=30a81e59894ed6c1fdb4a3bb0823b58de1e431cc Commit: 30a81e59894ed6c1fdb4a3bb0823b58de1e431cc Parent: b53e9ba66a53e68fdad7700bcccb9d38e24e39d6 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jan 25 23:26:33 2012 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Dec 12 13:28:19 2013 +0100
cleanup: self compilable headers
--- daemons/clvmd/clvm.h | 1 + daemons/dmeventd/libdevmapper-event.h | 1 + lib/datastruct/lvm-types.h | 2 ++ lib/datastruct/str_list.h | 3 +++ lib/device/device.h | 1 + lib/format_text/text_import.h | 3 +++ lib/metadata/lv.h | 4 ++-- lib/metadata/lv_alloc.h | 2 ++ lib/metadata/pv.h | 4 +++- lib/metadata/pv_alloc.h | 9 +++++++++ lib/metadata/vg.h | 6 +++--- lib/misc/crc.h | 2 ++ lib/uuid/uuid.h | 5 +++++ libdm/misc/dm-log-userspace.h | 2 ++ 14 files changed, 39 insertions(+), 6 deletions(-)
daemons/clvmd/clvm.h +1 -0
@@ -23,6 +23,7 @@#define _CLVM_H#include "configure.h" +#include <inttypes.h> struct clvm_header {uint8_t cmd;/* See below */
daemons/dmeventd/libdevmapper-event.h +1 -0
@@ -48,6 +48,7 @@ enum dm_event_mask {#define DM_EVENT_ALL_ERRORS DM_EVENT_ERROR_MASK#define DM_EVENT_PROTOCOL_VERSION 1 +struct dm_task ;struct dm_event_handler ;struct dm_event_handler *dm_event_handler_create (void );
lib/datastruct/lvm-types.h +2 -0
@@ -19,6 +19,8 @@#include <sys/types.h> #include <inttypes.h> +#include "libdevmapper.h" +/* Define some portable printing types */ #define PRIsize_t "zu"#define PRIptrdiff_t "td"
lib/datastruct/str_list.h +3 -0
@@ -16,6 +16,9 @@#ifndef _LVM_STR_LIST_H#define _LVM_STR_LIST_H +struct dm_list ; +struct dm_pool ; +struct dm_list *str_list_create (struct dm_pool *mem);int str_list_add (struct dm_pool *mem,struct dm_list *sll,const char *str);void str_list_del (struct dm_list *sll,const char *str);
lib/device/device.h +1 -0
@@ -17,6 +17,7 @@#define _LVM_DEVICE_H#include "uuid.h" +#include "lvm-types.h" #include <fcntl.h>
lib/format_text/text_import.h +3 -0
@@ -16,6 +16,9 @@#ifndef _LVM_TEXT_IMPORT_H#define _LVM_TEXT_IMPORT_H +#include <inttypes.h> + +struct dm_hash_table ;struct lv_segment ;struct dm_config_node ;
lib/metadata/lv.h +2 -2
@@ -15,9 +15,9 @@#ifndef _LVM_LV_H#define _LVM_LV_H +#include "vg.h" +union lvid ; -struct volume_group ; -struct dm_list ;struct lv_segment ;struct replicator_device ;enum activation_change ;
lib/metadata/lv_alloc.h +2 -0
@@ -16,6 +16,8 @@#ifndef _LVM_LV_ALLOC_H#define _LVM_LV_ALLOC_H +#include "metadata-exported.h" + struct lv_segment *alloc_lv_segment(const struct segment_type *segtype, struct logical_volume *lv, uint32_t le, uint32_t len,
lib/metadata/pv.h +3 -1
@@ -15,7 +15,9 @@#ifndef _LVM_PV_H#define _LVM_PV_H -struct id ; +#include "uuid.h" +#include "libdevmapper.h" +struct device ;struct format_type ;struct volume_group ;
lib/metadata/pv_alloc.h +9 -0
@@ -14,6 +14,15 @@#ifndef _LVM_PV_ALLOC_H +#include <inttypes.h> + +struct dm_list ; +struct dm_pool ; +struct lv_segment ; +struct physical_volume ; +struct pv_segment ; +struct volume_group ; +int alloc_pv_segment_whole_pv (struct dm_pool *mem,struct physical_volume *pv);int peg_dup (struct dm_pool *mem,struct dm_list *peg_new,struct dm_list *peg_old); struct pv_segment *assign_peg_to_lvseg(struct physical_volume *pv, uint32_t pe,
lib/metadata/vg.h +3 -3
@@ -15,11 +15,11 @@ #ifndef _LVM_VG_H #define _LVM_VG_H +#include "uuid.h" +#include "libdevmapper.h" + struct cmd_context; -struct dm_pool; struct format_instance; -struct dm_list; -struct id; struct logical_volume; typedef enum {
lib/misc/crc.h +2 -0
@@ -16,6 +16,8 @@#ifndef _LVM_CRC_H#define _LVM_CRC_H +#include <inttypes.h> +#define INITIAL_CRC 0xf597a6cfuint32_t calc_crc (uint32_t initial,const uint8_t *buf,uint32_t size);
lib/uuid/uuid.h +5 -0
@@ -19,6 +19,11 @@#define ID_LEN 32#define ID_LEN_S "32" +#include <inttypes.h> +#include <sys/types.h> + +struct dm_pool ; +struct id {int8_t uuid[ID_LEN ]; };
libdm/misc/dm-log-userspace.h +2 -0
@@ -7,6 +7,8 @@#ifndef __DM_LOG_USERSPACE_H__#define __DM_LOG_USERSPACE_H__ +#include <inttypes.h> +#include "dm-ioctl.h" /* For DM_UUID_LEN */ /*