aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-11-09 16:16:18 -0800
committerJosh Blum <josh@joshknows.com>2012-11-10 16:43:30 -0800
commita3f18afa672d4f14b8982e5666de920e9bc08f7e (patch)
tree7da2c5a464faf0921a9b7aff4f667a46e904aea8 /host
parent5d0a0631cad9cd16c14e6c5209ab0ce3bf9c53e4 (diff)
downloaduhd-a3f18afa672d4f14b8982e5666de920e9bc08f7e.tar.gz
uhd-a3f18afa672d4f14b8982e5666de920e9bc08f7e.tar.bz2
uhd-a3f18afa672d4f14b8982e5666de920e9bc08f7e.zip
uhd: make stream cmd enums easier on SWIG
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/types/stream_cmd.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/host/include/uhd/types/stream_cmd.hpp b/host/include/uhd/types/stream_cmd.hpp
index 41708e2e2..3c34c9656 100644
--- a/host/include/uhd/types/stream_cmd.hpp
+++ b/host/include/uhd/types/stream_cmd.hpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010 Ettus Research LLC
+// Copyright 2010-2012 Ettus Research LLC
//
// 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
@@ -46,10 +46,10 @@ namespace uhd{
struct UHD_API stream_cmd_t{
enum stream_mode_t {
- STREAM_MODE_START_CONTINUOUS = 'a',
- STREAM_MODE_STOP_CONTINUOUS = 'o',
- STREAM_MODE_NUM_SAMPS_AND_DONE = 'd',
- STREAM_MODE_NUM_SAMPS_AND_MORE = 'm'
+ STREAM_MODE_START_CONTINUOUS = int('a'),
+ STREAM_MODE_STOP_CONTINUOUS = int('o'),
+ STREAM_MODE_NUM_SAMPS_AND_DONE = int('d'),
+ STREAM_MODE_NUM_SAMPS_AND_MORE = int('m')
} stream_mode;
size_t num_samps;