* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H
+#define LIBSERIALPORT_LIBSERIALPORT_INTERNAL_H
+
#include "config.h"
#ifdef __linux__
-#define _BSD_SOURCE // for timeradd, timersub, timercmp
+#define _BSD_SOURCE /* For timeradd, timersub, timercmp. */
#endif
#include <string.h>
DWORD events;
BYTE pending_byte;
BOOL writing;
+ BOOL wait_running;
#else
int fd;
#endif
int value;
};
-extern const struct std_baudrate std_baudrates[];
-
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
-#define NUM_STD_BAUDRATES ARRAY_SIZE(std_baudrates)
extern void (*sp_debug_handler)(const char *format, ...);
#define RETURN() do { \
DEBUG_FMT("%s returning", __func__); \
return; \
-} while(0)
+} while (0)
#define RETURN_CODE(x) do { \
DEBUG_FMT("%s returning " #x, __func__); \
return x; \
/* OS-specific Helper functions. */
SP_PRIV enum sp_return get_port_details(struct sp_port *port);
SP_PRIV enum sp_return list_ports(struct sp_port ***list);
+
+#endif