X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fagilent-dmm%2Fagilent-dmm.h;h=ec18c3dae42387d4a73dca0aa67b88ba575cefe6;hb=refs%2Ftags%2Fdsupstream;hp=179d0013cfb4947102a1c0350484c843344c84d0;hpb=b186aa78b8302942c8853c9aed40e3e5eaba8e34;p=libsigrok.git diff --git a/hardware/agilent-dmm/agilent-dmm.h b/hardware/agilent-dmm/agilent-dmm.h index 179d0013..ec18c3da 100644 --- a/hardware/agilent-dmm/agilent-dmm.h +++ b/hardware/agilent-dmm/agilent-dmm.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the libsigrok project. * * Copyright (C) 2012 Bert Vermeulen * @@ -21,6 +21,15 @@ #ifndef LIBSIGROK_AGILENT_DMM_H #define LIBSIGROK_AGILENT_DMM_H +/* Message logging helpers with subsystem-specific prefix string. */ +#define LOG_PREFIX "agilent-dmm: " +#define sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args) +#define sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args) +#define sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args) +#define sr_info(s, args...) sr_info(LOG_PREFIX s, ## args) +#define sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args) +#define sr_err(s, args...) sr_err(LOG_PREFIX s, ## args) + #define AGDMM_BUFSIZE 256 /* Supported models */ @@ -37,22 +46,15 @@ enum { struct agdmm_profile { int model; const char *modelname; - int serial_speed; const struct agdmm_job *jobs; const struct agdmm_recv *recvs; }; -/* Private driver context. */ -struct drv_context { - GSList *instances; -}; - /* Private, per-device-instance driver context. */ struct dev_context { const struct agdmm_profile *profile; uint64_t limit_samples; uint64_t limit_msec; - struct sr_serial_dev_inst *serial; /* Opaque pointer passed in by the frontend. */ void *cb_data;