]> sigrok.org Git - libsigrok.git/commitdiff
std: Standardize function name.
authorBert Vermeulen <redacted>
Sat, 7 Dec 2013 19:39:55 +0000 (20:39 +0100)
committerBert Vermeulen <redacted>
Sat, 7 Dec 2013 20:23:39 +0000 (21:23 +0100)
std_dev_acquisition_stop_serial() is now std_serial_dev_acquisition_stop().

14 files changed:
hardware/agilent-dmm/api.c
hardware/brymen-dmm/api.c
hardware/cem-dt-885x/api.c
hardware/center-3xx/api.c
hardware/colead-slm/api.c
hardware/fluke-dmm/api.c
hardware/gmc-mh-1x-2x/api.c
hardware/mic-985xx/api.c
hardware/norma-dmm/api.c
hardware/serial-dmm/api.c
hardware/teleinfo/api.c
hardware/tondaj-sl-814/api.c
libsigrok-internal.h
std.c

index 2c37fe3a5b164aaa219698cefee871df040283c7..a58e57c32e2a983d30653ae1761975c5d51b4bf1 100644 (file)
@@ -274,7 +274,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
                        sdi->conn, LOG_PREFIX);
 }
 
index 1e1dbf6577ee8e15b0488f36ba08d1fdb3181770..c9f9ba753df50b740d06fe6d7d32415beb5500c6 100644 (file)
@@ -256,8 +256,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
-                                              sdi->conn, LOG_PREFIX);
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
+                       sdi->conn, LOG_PREFIX);
 }
 
 SR_PRIV struct sr_dev_driver brymen_bm857_driver_info = {
index f4c170de2c5d3d177fa7f16043d8d33f1c8e6d6c..e1e4b2e4895abb295fdabebc6d787ca857220f2f 100644 (file)
@@ -415,10 +415,8 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
        if (sdi->status != SR_ST_ACTIVE)
                return SR_ERR_DEV_CLOSED;
 
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
                        sdi->conn, LOG_PREFIX);
-
-       return SR_OK;
 }
 
 SR_PRIV struct sr_dev_driver cem_dt_885x_driver_info = {
index ab6f4989354328bb626fdd62a8b6f59362d32a0e..aa1e4a7bae5be997260d867bea6ff246b14e1fd8 100644 (file)
@@ -252,8 +252,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data,
-                               std_serial_dev_close, sdi->conn, LOG_PREFIX);
+       return std_serial_dev_acquisition_stop(sdi, cb_data,
+                       std_serial_dev_close, sdi->conn, LOG_PREFIX);
 }
 
 /* Driver-specific API function wrappers */
index fe3fd3d280fae35fe308fc6b944a38dc7c5300fd..99455917e31695e54706b017d0ced55877c8b091 100644 (file)
@@ -222,7 +222,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
                        sdi->conn, LOG_PREFIX);
 }
 
index 90692e79b640e0fe125fe909de69610f8f136b28..52c340806b4d11dc81eba1d49bf291e357ecefe1 100644 (file)
@@ -314,7 +314,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
                        sdi->conn, LOG_PREFIX);
 }
 
index acdf8413b078c18fc2fce0b01ce298806d6c984e..922f9fee98c4ccb82e3d4b28438f14129fa17bc9 100644 (file)
@@ -372,7 +372,7 @@ static int dev_acq_stop(struct sr_dev_inst *sdi, void *cb_data)
        if (sdi && (devc = sdi->priv) && devc->limit_msec)
                g_timer_stop(devc->elapsed_msec);
 
-       return std_dev_acquisition_stop_serial(sdi, cb_data, dev_close,
+       return std_serial_dev_acquisition_stop(sdi, cb_data, dev_close,
                        sdi->conn, LOG_PREFIX);
 }
 
index d59c0bfc7c31fb0356ab5ce5073494d2f06bca69..cdbf70dff2c765db5ab2fd3967e63b4de4dd2ff7 100644 (file)
@@ -254,8 +254,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
-                                              sdi->conn, LOG_PREFIX);
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
+                       sdi->conn, LOG_PREFIX);
 }
 
 /* Driver-specific API function wrappers */
index d0089c62949e5245f0965ecc8bd7b440c3a71b51..397694cabfa059eb7d8e299e961223b937ec256e 100644 (file)
@@ -302,7 +302,7 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
        if (sdi && (devc = sdi->priv) && devc->limit_msec)
                g_timer_stop(devc->elapsed_msec);
 
-       return std_dev_acquisition_stop_serial(sdi, cb_data, dev_close,
+       return std_serial_dev_acquisition_stop(sdi, cb_data, dev_close,
                        sdi->conn, LOG_PREFIX);
 }
 
index c85e94483936db95b5a16f13d68b0e9e7d16a130..4af043a4c309876922dec8df35deb5da84f9919e 100644 (file)
@@ -490,8 +490,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
-                                              sdi->conn, LOG_PREFIX);
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
+                       sdi->conn, LOG_PREFIX);
 }
 
 /* Driver-specific API function wrappers */
index bf70660fc2a4daf6582d04d59222f5189bac1f83..49a3f5ce34fbece1c453e59b726559e5d06e5a79 100644 (file)
@@ -278,8 +278,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data)
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
-                                              sdi->conn, LOG_PREFIX);
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
+                       sdi->conn, LOG_PREFIX);
 }
 
 SR_PRIV struct sr_dev_driver teleinfo_driver_info = {
index aa27c17c30db8656165407febf69ab86f419624d..f99582381e7ad079c842a77d57f50b7a95d37183 100644 (file)
@@ -218,8 +218,8 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi,
 
 static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
 {
-       return std_dev_acquisition_stop_serial(sdi, cb_data, std_serial_dev_close,
-                                              sdi->conn, LOG_PREFIX);
+       return std_serial_dev_acquisition_stop(sdi, cb_data, std_serial_dev_close,
+                       sdi->conn, LOG_PREFIX);
 }
 
 SR_PRIV struct sr_dev_driver tondaj_sl_814_driver_info = {
index 5e0556e3c78e37238dd0eb8846d704ebc3784291..3122e5812e209c424f129db66b64a8c1b1db702d 100644 (file)
@@ -181,7 +181,7 @@ typedef void (*std_dev_clear_t)(void *priv);
 SR_PRIV int std_init(struct sr_context *sr_ctx, struct sr_dev_driver *di,
                const char *prefix);
 #ifdef HAVE_LIBSERIALPORT
-SR_PRIV int std_dev_acquisition_stop_serial(struct sr_dev_inst *sdi,
+SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi,
                void *cb_data, dev_close_t dev_close_fn,
                struct sr_serial_dev_inst *serial, const char *prefix);
 #endif
diff --git a/std.c b/std.c
index ab151198c07ad79d5ce522d0dcdc24611d9b84ec..2b4dec3fc7903f5e474092e985c42acdfe3295cb 100644 (file)
--- a/std.c
+++ b/std.c
@@ -124,7 +124,7 @@ SR_PRIV int std_session_send_df_header(const struct sr_dev_inst *sdi,
  * @retval SR_ERR_DEV_CLOSED Device is closed.
  * @retval SR_ERR Other errors.
  */
-SR_PRIV int std_dev_acquisition_stop_serial(struct sr_dev_inst *sdi,
+SR_PRIV int std_serial_dev_acquisition_stop(struct sr_dev_inst *sdi,
                        void *cb_data, dev_close_t dev_close_fn,
                        struct sr_serial_dev_inst *serial, const char *prefix)
 {