summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/buffer_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/buffer_context.h')
-rw-r--r--gnuradio-runtime/include/gnuradio/buffer_context.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnuradio-runtime/include/gnuradio/buffer_context.h b/gnuradio-runtime/include/gnuradio/buffer_context.h
new file mode 100644
index 0000000000..477a3cbd43
--- /dev/null
+++ b/gnuradio-runtime/include/gnuradio/buffer_context.h
@@ -0,0 +1,30 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2021 BlackLynx, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ *
+ */
+
+#ifndef INCLUDED_GR_RUNTIME_BUFFER_CONTEXT_H
+#define INCLUDED_GR_RUNTIME_BUFFER_CONTEXT_H
+
+#include <gnuradio/api.h>
+#include <ostream>
+
+namespace gr {
+
+enum class buffer_context {
+ DEFAULT_INVALID,
+ HOST_TO_DEVICE,
+ DEVICE_TO_HOST,
+ HOST_TO_HOST,
+ DEVICE_TO_DEVICE
+};
+
+GR_RUNTIME_API std::ostream& operator<<(std::ostream& os, const buffer_context& context);
+} // namespace gr
+
+#endif