2022-11-25 11:36:29 +01:00
|
|
|
package ppf
|
2022-11-24 21:49:10 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
2022-11-25 11:36:29 +01:00
|
|
|
func (dm *DataModel) GetPacketEditor() *PacketEditor {
|
2022-11-24 22:51:02 +01:00
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) SwitchToProtocolEditor() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-11-25 11:36:29 +01:00
|
|
|
func (dm *DataModel) SyncPacketEditor(pkgedt *PacketEditor) {
|
2022-11-24 22:51:02 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) GetPackageBytes() []byte {
|
|
|
|
|
|
|
|
return []byte{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) FromSaved(path string) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (dm *DataModel) SaveAsPcap(path string) {
|
|
|
|
|
|
|
|
}
|