[beast: 1/19] BSE: add bsetool for future utility routines
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 1/19] BSE: add bsetool for future utility routines
- Date: Sun, 13 Sep 2015 20:26:11 +0000 (UTC)
commit 198171eeac5ccddf9c44423b1383e0af8473b6cd
Author: Tim Janik <timj gnu org>
Date: Fri Sep 4 17:52:04 2015 +0200
BSE: add bsetool for future utility routines
bse/Makefile.am | 5 +++++
bse/bsetool.cc | 15 +++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/bse/Makefile.am b/bse/Makefile.am
index f3381c8..8460b59 100644
--- a/bse/Makefile.am
+++ b/bse/Makefile.am
@@ -361,6 +361,11 @@ noinst_PROGRAMS += bseinfo
bseinfo_SOURCES = bseinfo.cc
bseinfo_LDADD = $(progs_LDADD)
+# == bsetool ==
+noinst_PROGRAMS += bsetool
+bsetool_SOURCES = bsetool.cc
+bsetool_LDADD = libbse.la
+
# == Tests ==
EXTRA_DIST += oldidl.idl
check-oldidl: oldidl.idl AuxTypes.py
diff --git a/bse/bsetool.cc b/bse/bsetool.cc
new file mode 100644
index 0000000..a57fcb1
--- /dev/null
+++ b/bse/bsetool.cc
@@ -0,0 +1,15 @@
+// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
+#include <bse/bsemain.hh>
+#include <sys/resource.h>
+#include <unistd.h>
+#include <stdio.h>
+
+int
+main (int argc, char *argv[])
+{
+ bse_init_inprocess (&argc, argv, "bsetool"); // Bse::cstrings_to_vector (NULL)
+ // now that the BSE thread runs, drop scheduling priorities if we have any
+ setpriority (PRIO_PROCESS, getpid(), 0);
+ printf ("bsetool!\n");
+ return 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]