umtrx: copy in platform.hpp, which may be deleted from uhd

This commit is contained in:
Josh Blum
2014-10-28 15:18:07 -04:00
parent 197e2f01f9
commit fee641af8b
3 changed files with 38 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
#include <uhd/utils/platform.hpp>
#include "platform.hpp"
#include <uhd/config.hpp>
#include <boost/functional/hash.hpp>
#ifdef UHD_PLATFORM_WIN32

36
host/missing/platform.hpp Normal file
View File

@@ -0,0 +1,36 @@
//
// 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
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
#ifndef INCLUDED_UHD_UTILS_PLATFORM_HPP_COPY
#define INCLUDED_UHD_UTILS_PLATFORM_HPP_COPY
#include <boost/cstdint.hpp>
namespace uhd {
/* Returns the process ID of the current process */
boost::int32_t get_process_id();
/* Returns a unique identifier for the current machine */
boost::uint32_t get_host_id();
/* Get a unique identifier for the current machine and process */
boost::uint32_t get_process_hash();
} //namespace uhd
#endif /* INCLUDED_UHD_UTILS_PLATFORM_HPP_COPY */

View File

@@ -21,7 +21,7 @@
#include "umtrx_iface.hpp"
#include <uhd/exception.hpp>
#include <uhd/utils/msg.hpp>
#include <uhd/utils/platform.hpp>
#include "missing/platform.hpp"
#include <uhd/utils/tasks.hpp>
#include <uhd/utils/safe_call.hpp>
#include <uhd/types/dict.hpp>