Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Beatrici <davidebeatrici@gmail.com>2019-07-31 02:41:58 +0300
committerDavide Beatrici <davidebeatrici@gmail.com>2019-08-09 00:51:13 +0300
commit9875c59b7af7e71184cd44049ad58d3d89a83e23 (patch)
tree077d8059b9108935da883f99293c4a65f09232fe /plugins/mumble_plugin_main.h
parente8afc3872a09472e444b41c92a98f307b27b4efc (diff)
plugins: use new header
Diffstat (limited to 'plugins/mumble_plugin_main.h')
-rw-r--r--plugins/mumble_plugin_main.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/mumble_plugin_main.h b/plugins/mumble_plugin_main.h
index 26539a6a6..dc770b55a 100644
--- a/plugins/mumble_plugin_main.h
+++ b/plugins/mumble_plugin_main.h
@@ -1,15 +1,23 @@
-// Copyright 2005-2019 The Mumble Developers. All rights reserved.
+// Copyright 2019 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>.
+// This is the main header for process/OS stuff; it's included in most plugins
+// because values can rarely be retrieved without accessing the process' memory.
+//
+// Various functions are provided for common tasks when reading from memory.
+// The most important are getModuleAddr() and peekProc(); the first returns the
+// base address of a module (e.g. shared library), the latter reads memory at the
+// specified address and stores it in a variable.
+
#ifndef MUMBLE_PLUGIN_MAIN_H_
#define MUMBLE_PLUGIN_MAIN_H_
#include "mumble_plugin.h"
-static procid_t pPid;
static bool is64Bit;
+static procid_t pPid;
static procptr_t pModule;
static inline bool peekProc(const procptr_t &addr, void *dest, const size_t &len);