Move *_offsetof() macro definitions to db.h

This commit is contained in:
Julien BLACHE
2009-06-11 23:17:17 +02:00
parent 1f92052409
commit e1c0b6d4b7
5 changed files with 11 additions and 27 deletions

View File

@@ -27,8 +27,6 @@
#include <stdint.h>
#include <inttypes.h>
#include <stddef.h>
#include <pthread.h>
#include <sqlite3.h>
@@ -53,9 +51,6 @@ struct col_type_map {
short type;
};
#define mfi_offsetof(field) offsetof(struct media_file_info, field)
#define pli_offsetof(field) offsetof(struct playlist_info, field)
/* This list must be kept in sync with
* - the order of the columns in the files table
* - the type and name of the fields in struct media_file_info
@@ -124,9 +119,6 @@ static struct col_type_map pli_cols_map[] =
/* items is computed on the fly */
};
#define dbmfi_offsetof(field) offsetof(struct db_media_file_info, field)
#define dbpli_offsetof(field) offsetof(struct db_playlist_info, field)
/* This list must be kept in sync with
* - the order of the columns in the files table
* - the name of the fields in struct db_media_file_info
@@ -195,8 +187,6 @@ static ssize_t dbpli_cols_map[] =
/* items is computed on the fly */
};
#define wi_offsetof(field) offsetof(struct watch_info, field)
/* This list must be kept in sync with
* - the order of the columns in the inotify table
* - the name and type of the fields in struct watch_info