2022-11-24 21:49:10 +01:00
|
|
|
package npc
|
|
|
|
|
|
|
|
func NewDataModel(name string) *DataModel {
|
|
|
|
return &DataModel{
|
|
|
|
Name: name,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) AddProtocol(name string) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) RemoveProtocolByName(name string) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) RemoveProtocolElement(id uint) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) NewProtocol(name string) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) SaveNewProtocol(editorContent ProtocolEditor) {
|
|
|
|
|
|
|
|
}
|
2022-11-24 22:51:02 +01:00
|
|
|
|
|
|
|
func (dm *DataModel) GetPackageEditor() *PackageEditor {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) SwitchToProtocolEditor() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) SyncPackageEditor(pkgedt *PackageEditor) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) GetPackageBytes() []byte {
|
|
|
|
|
|
|
|
return []byte{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) FromSaved(path string) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) SaveAsPcap(path string) {
|
|
|
|
|
|
|
|
}
|