From: Uwe Hermann Date: Tue, 22 Feb 2011 17:08:41 +0000 (+0100) Subject: Make DATASTORE_CHUNKSIZE private. X-Git-Tag: libsigrok-0.1.0~311 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f5a443f27ad0e99f8f0f93867a1f298d7a6a327a;p=libsigrok.git Make DATASTORE_CHUNKSIZE private. --- diff --git a/datastore.c b/datastore.c index c7ace06f..7f35ee5a 100644 --- a/datastore.c +++ b/datastore.c @@ -22,6 +22,7 @@ #include #include #include +#include static gpointer new_chunk(struct sr_datastore **ds); diff --git a/session_file.c b/session_file.c index 4d70b351..c8939e5f 100644 --- a/session_file.c +++ b/session_file.c @@ -25,11 +25,11 @@ #include #include #include +#include extern struct sr_session *session; extern struct sr_device_plugin session_driver; - int sr_session_load(const char *filename) { GKeyFile *kf; @@ -242,4 +242,3 @@ int sr_session_save(const char *filename) return SR_OK; } - diff --git a/sigrok-internal.h b/sigrok-internal.h index a5326d2b..4aeae18e 100644 --- a/sigrok-internal.h +++ b/sigrok-internal.h @@ -30,6 +30,9 @@ #define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a) #endif +/* Size of a datastore chunk in units */ +#define DATASTORE_CHUNKSIZE 512000 + /*--- hwplugin.c ------------------------------------------------------------*/ int load_hwplugins(void); diff --git a/sigrok.h b/sigrok.h index db747075..9109201d 100644 --- a/sigrok.h +++ b/sigrok.h @@ -164,9 +164,6 @@ struct sr_analyzer { */ }; -/* Size of a chunk in units */ -#define DATASTORE_CHUNKSIZE 512000 - struct sr_datastore { /* Size in bytes of the number of units stored in this datastore */ int ds_unitsize;