Bug 1847098 - Report library version from filename at crash r=gsvelto
[gecko.git] / toolkit / crashreporter / linux_utils.h
blob5226bd8164cb840f7cff93f60e16fc7977abc873
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef toolkit_breakpad_linux_utils_h__
7 #define toolkit_breakpad_linux_utils_h__
9 #include <stdio.h>
10 #include <stdint.h>
11 #include <string>
12 #include <vector>
14 using VersionComponents = std::vector<uint32_t>;
16 bool ElfFileSoVersion(const char* mapping_name, VersionComponents* version);
18 #endif /* toolkit_breakpad_linux_utils_h__ */