From: Uwe Hermann Date: Sun, 3 Nov 2013 20:57:36 +0000 (+0100) Subject: Revert "New API function sr_session_dev_list()" X-Git-Tag: libsigrok-0.2.2~1 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=455279d79a9126e78b721607cc04d1a5cdc82c37;p=libsigrok.git Revert "New API function sr_session_dev_list()" This reverts commit 2bb311b482d587a7d20c35bf54f084bc0011d72d. --- diff --git a/session.c b/session.c index 1cf4170e..b5db918a 100644 --- a/session.c +++ b/session.c @@ -190,31 +190,6 @@ SR_API int sr_session_dev_add(const struct sr_dev_inst *sdi) return SR_OK; } -/** - * List all device instances attached to the current session. - * - * @param devlist A pointer where the device instance list will be - * stored on return. If no devices are in the session, - * this will be NULL. Each element in the list points - * to a struct sr_dev_inst *. - * The list must be freed by the caller, but not the - * elements pointed to. - * - * @return SR_OK upon success, SR_ERR upon invalid arguments. - */ -SR_API int sr_session_dev_list(GSList **devlist) -{ - - *devlist = NULL; - - if (!session) - return SR_ERR; - - *devlist = g_slist_copy(session->devs); - - return SR_OK; -} - /** * Remove all datafeed callbacks in the current session. *