librazor/razor-internal.h
changeset 414 404c18183801
parent 388 6a6462ce8a08
child 416 d0aa9e0a6d04
     1.1 --- a/librazor/razor-internal.h	Thu Oct 01 20:02:12 2009 +0100
     1.2 +++ b/librazor/razor-internal.h	Wed Feb 01 13:00:40 2012 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * Copyright (C) 2008  Kristian Høgsberg <krh@redhat.com>
     1.6   * Copyright (C) 2008  Red Hat, Inc
     1.7 - * Copyright (C) 2009  J. Ali Harlow <ali@juiblex.co.uk>
     1.8 + * Copyright (C) 2009, 2011  J. Ali Harlow <ali@juiblex.co.uk>
     1.9   *
    1.10   * This program is free software; you can redistribute it and/or modify
    1.11   * it under the terms of the GNU General Public License as published by
    1.12 @@ -29,7 +29,7 @@
    1.13  #include "razor.h"
    1.14  #include "types/types.h"
    1.15  
    1.16 -/* GCC visibility */
    1.17 +/* GCC extensions */
    1.18  #if defined(__GNUC__) && __GNUC__ >= 4
    1.19  #define RAZOR_EXPORT __attribute__ ((visibility("default")))
    1.20  #else
    1.21 @@ -54,7 +54,6 @@
    1.22  };
    1.23  
    1.24  #define RAZOR_MAGIC 	0x525a4442
    1.25 -#define RAZOR_VERSION	1
    1.26  
    1.27  #define RAZOR_STRING_POOL		"string_pool"
    1.28  #define RAZOR_PACKAGES			"packages"
    1.29 @@ -108,6 +107,7 @@
    1.30  #define RAZOR_ENTRY_LAST	0x80
    1.31  
    1.32  struct razor_set {
    1.33 +	uint32_t header_version;
    1.34  	struct array string_pool;
    1.35   	struct array packages;
    1.36   	struct array properties;
    1.37 @@ -119,7 +119,7 @@
    1.38  	struct array file_string_pool;
    1.39  	struct array details_string_pool;
    1.40  	struct razor_mapped_file *mapped_files;
    1.41 -	int lock_fd;
    1.42 +	int lock_fd, ref_count;
    1.43  };
    1.44  
    1.45  struct import_entry {