mumble/plugins/HostLinux.h
Davide Beatrici c96153e2c6 REFAC(plugins): Move "m_ok" variable from HostLinux and HostWindows to Process
HostWindows' constructor only initializes its variables now, like HostLinux'.
2020-11-02 09:15:54 +01:00

31 lines
692 B
C++

// Copyright 2020 The Mumble Developers. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file at the root of the
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
#ifndef HOSTLINUX_H_
#define HOSTLINUX_H_
#include <cstddef>
#include <cstdint>
#include <string>
typedef uint32_t procid_t;
typedef uint64_t procptr_t;
class HostLinux {
protected:
procid_t m_pid;
public:
bool peek(const procptr_t address, void *dst, const size_t size) const;
procptr_t module(const std::string &module) const;
static bool isWine(const procid_t id);
HostLinux(const procid_t pid);
virtual ~HostLinux();
};
#endif