From: Uwe Hermann Date: Sun, 3 Mar 2013 17:02:24 +0000 (+0100) Subject: Drop deprecated sr_session_halt(). X-Git-Tag: dsupstream~258 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a819da9c258bd1f295604e4078c84ca0bab2de04;p=libsigrok.git Drop deprecated sr_session_halt(). This has been deprecated in favor of sr_session_stop() since a while. None of the current frontends use sr_session_halt() anymore, neither does libsigrok. --- diff --git a/proto.h b/proto.h index c801f6cd..54cccb17 100644 --- a/proto.h +++ b/proto.h @@ -96,7 +96,6 @@ SR_API int sr_session_datafeed_callback_add(sr_datafeed_callback_t cb); /* Session control */ SR_API int sr_session_start(void); SR_API int sr_session_run(void); -SR_API int sr_session_halt(void); SR_API int sr_session_stop(void); SR_API int sr_session_save(const char *filename, const struct sr_dev_inst *sdi, unsigned char *buf, int unitsize, int units); diff --git a/session.c b/session.c index c372cb6b..ac5981ad 100644 --- a/session.c +++ b/session.c @@ -366,20 +366,6 @@ SR_API int sr_session_run(void) return SR_OK; } -/** - * Halt the current session. - * - * This function is deprecated and should not be used in new code, use - * sr_session_stop() instead. The behaviour of this function is identical to - * sr_session_stop(). - * - * @return SR_OK upon success, SR_ERR_BUG if no session exists. - */ -SR_API int sr_session_halt(void) -{ - return sr_session_stop(); -} - /** * Stop the current session. *