Make DATASTORE_CHUNKSIZE private.

This commit is contained in:
Uwe Hermann 2011-02-22 18:08:41 +01:00
parent c91404191e
commit f5a443f27a
4 changed files with 5 additions and 5 deletions

View File

@ -22,6 +22,7 @@
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>
#include <sigrok.h> #include <sigrok.h>
#include <sigrok-internal.h>
static gpointer new_chunk(struct sr_datastore **ds); static gpointer new_chunk(struct sr_datastore **ds);

View File

@ -25,11 +25,11 @@
#include <glib.h> #include <glib.h>
#include <glib/gstdio.h> #include <glib/gstdio.h>
#include <sigrok.h> #include <sigrok.h>
#include <sigrok-internal.h>
extern struct sr_session *session; extern struct sr_session *session;
extern struct sr_device_plugin session_driver; extern struct sr_device_plugin session_driver;
int sr_session_load(const char *filename) int sr_session_load(const char *filename)
{ {
GKeyFile *kf; GKeyFile *kf;
@ -242,4 +242,3 @@ int sr_session_save(const char *filename)
return SR_OK; return SR_OK;
} }

View File

@ -30,6 +30,9 @@
#define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a) #define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a)
#endif #endif
/* Size of a datastore chunk in units */
#define DATASTORE_CHUNKSIZE 512000
/*--- hwplugin.c ------------------------------------------------------------*/ /*--- hwplugin.c ------------------------------------------------------------*/
int load_hwplugins(void); int load_hwplugins(void);

View File

@ -164,9 +164,6 @@ struct sr_analyzer {
*/ */
}; };
/* Size of a chunk in units */
#define DATASTORE_CHUNKSIZE 512000
struct sr_datastore { struct sr_datastore {
/* Size in bytes of the number of units stored in this datastore */ /* Size in bytes of the number of units stored in this datastore */
int ds_unitsize; int ds_unitsize;