diff -r 6a6462ce8a08 -r 404c18183801 librazor/razor-internal.h --- a/librazor/razor-internal.h Thu Oct 01 20:02:12 2009 +0100 +++ b/librazor/razor-internal.h Wed Feb 01 13:00:40 2012 +0000 @@ -1,7 +1,7 @@ /* * Copyright (C) 2008 Kristian Høgsberg * Copyright (C) 2008 Red Hat, Inc - * Copyright (C) 2009 J. Ali Harlow + * Copyright (C) 2009, 2011 J. Ali Harlow * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ #include "razor.h" #include "types/types.h" -/* GCC visibility */ +/* GCC extensions */ #if defined(__GNUC__) && __GNUC__ >= 4 #define RAZOR_EXPORT __attribute__ ((visibility("default"))) #else @@ -54,7 +54,6 @@ }; #define RAZOR_MAGIC 0x525a4442 -#define RAZOR_VERSION 1 #define RAZOR_STRING_POOL "string_pool" #define RAZOR_PACKAGES "packages" @@ -108,6 +107,7 @@ #define RAZOR_ENTRY_LAST 0x80 struct razor_set { + uint32_t header_version; struct array string_pool; struct array packages; struct array properties; @@ -119,7 +119,7 @@ struct array file_string_pool; struct array details_string_pool; struct razor_mapped_file *mapped_files; - int lock_fd; + int lock_fd, ref_count; }; struct import_entry {