#ifndef REMOTE_UTILS_H
#define REMOTE_UTILS_H
-#include "serial.h"
+struct target_ops;
+
#include "target.h"
+struct serial;
/* Stuff that should be shared (and handled consistently) among the various
remote targets. */
int retries;
char *device;
- serial_t desc;
+ struct serial *desc;
};
#define sr_is_open() (sr_settings.desc != NULL)
#define sr_check_open() { if (!sr_is_open()) \
- error ("Remote device not open"); }
+ error (_("Remote device not open")); }
struct gr_settings
{