mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 14:30:20 -05:00
Move *_offsetof() macro definitions to db.h
This commit is contained in:
10
src/db.c
10
src/db.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user