]> sigrok.org Git - libsigrok.git/blobdiff - backend.c
sr: corrected VID for Victor 70C
[libsigrok.git] / backend.c
index 6a49cde7c83cf01a253fc409ebc1a0ce55506147..e2b7a466a9aab052e1680fad6d00dc3c367940bc 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -1,7 +1,7 @@
 /*
  * This file is part of the sigrok project.
  *
- * Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  */
 
 #include <glib.h>
-#include "sigrok.h"
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
 
-int sigrok_init(void)
+/**
+ * Initialize libsigrok.
+ *
+ * @return SR_OK upon success, a (negative) error code otherwise.
+ */
+SR_API int sr_init(void)
 {
-       int ret;
-
-       ret = load_hwplugins();
-
-       return ret;
+       return SR_OK;
 }
 
-
-void sigrok_cleanup(void)
+/**
+ * Shutdown libsigrok.
+ *
+ * @return SR_OK upon success, a (negative) error code otherwise.
+ */
+SR_API int sr_exit(void)
 {
+       sr_hw_cleanup_all();
 
-       device_close_all();
-
+       return SR_OK;
 }
-
-