#define ARRAY_AND_SIZE(a) (a), ARRAY_SIZE(a)
#endif
+/* Versions < 2.30.0 of glib don't have g_match_info_unref(). */
+#if !GLIB_CHECK_VERSION(2,30,0)
+#define g_match_info_unref g_match_info_free
+#endif
+
/* Size of a datastore chunk in units */
#define DATASTORE_CHUNKSIZE (512 * 1024)
SR_PRIV void serial_restore_params(int fd, void *backup);
SR_PRIV int serial_set_params(int fd, int baudrate, int bits, int parity,
int stopbits, int flowcontrol);
+SR_PRIV int serial_set_paramstr(int fd, const char *paramstr);
/*--- hardware/common/ezusb.c -----------------------------------------------*/