summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/include/gnuradio/buffer_context.h
blob: 477a3cbd43c3576a0e9f7c616c24c7c2d2feae41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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