]> sigrok.org Git - libsigrok.git/blobdiff - sigrok-internal.h
Make some more items 'static'.
[libsigrok.git] / sigrok-internal.h
index 85004aa13f14b8c0d27586bd6efd654825a2495b..4aeae18e4cdd904b0edb97517b6dcb24c79b3f96 100644 (file)
 #ifndef SIGROK_SIGROK_INTERNAL_H
 #define SIGROK_SIGROK_INTERNAL_H
 
+/*--- Macros ----------------------------------------------------------------*/
+
+#ifndef ARRAY_SIZE
+#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#endif
+
+#ifndef ARRAY_AND_SIZE
+#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);