gaulthiergain-tools/srcs/common/data.go
Gaulthier Gain 4425c80017 Improve the static analyser part
Signed-off-by: Gaulthier Gain <gaulthier.gain@uliege.be>
2021-05-18 10:47:01 +02:00

28 lines
989 B
Go

// Copyright 2019 The UNICORE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file
//
// Author: Gaulthier Gain <gaulthier.gain@uliege.be>
package common
// Exported struct that represents static and dynamic data.
type Data struct {
StaticData StaticData `json:"static_data"`
DynamicData DynamicData `json:"dynamic_data"`
}
// Exported struct that represents data for static dependency analysis.
type StaticData struct {
Dependencies map[string][]string `json:"dependencies"`
SharedLibs map[string][]string `json:"shared_libs"`
SystemCalls map[string]int `json:"system_calls"`
Symbols map[string]string `json:"symbols"`
}
// Exported struct that represents data for dynamic dependency analysis.
type DynamicData struct {
SharedLibs map[string][]string `json:"shared_libs"`
SystemCalls map[string]int `json:"system_calls"`
Symbols map[string]string `json:"symbols"`
}