File: 0001-SoapyUHDDevice-implemented-getNativeDeviceHandle.patch

package info (click to toggle)
soapyuhd 0.4.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 596 kB
  • sloc: cpp: 1,758; makefile: 12
file content (39 lines) | stat: -rw-r--r-- 1,278 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
From ff19e48fd1b79a8bc017a1a6dcedf8e88ce1e442 Mon Sep 17 00:00:00 2001
From: Nicholas Corgan <n.corgan@gmail.com>
Date: Sat, 10 Oct 2020 18:07:16 -0500
Subject: [PATCH 01/12] SoapyUHDDevice: implemented getNativeDeviceHandle()

---
 SoapyUHDDevice.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/SoapyUHDDevice.cpp b/SoapyUHDDevice.cpp
index 8dc77c7..afdc0c6 100644
--- a/SoapyUHDDevice.cpp
+++ b/SoapyUHDDevice.cpp
@@ -1,5 +1,5 @@
 // Copyright (c) 2014-2017 Josh Blum
-//                    2019 Nicholas Corgan
+//               2019-2020 Nicholas Corgan
 // SPDX-License-Identifier: GPL-3.0
 
 /***********************************************************************
@@ -933,6 +933,15 @@ public:
         return _dev->get_gpio_attr(bank, "DDR");
     }
 
+    /*******************************************************************
+     * Get handle to underlying device
+     ******************************************************************/
+
+    void* getNativeDeviceHandle(void) const
+    {
+        return _dev.get();
+    }
+
     /*******************************************************************
      * Helpers for searching property tree
      ******************************************************************/
-- 
2.47.3