]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - types.go
Update copyright years
[safcm/safcm.git] / types.go
index 267872db82f1ef50fd452d9e05d1c8ef5db0b5cf..77dd663c090f2f67c700cc5be9e51578fd340010 100644 (file)
--- a/types.go
+++ b/types.go
@@ -1,6 +1,6 @@
 // RPC primitives for safcm: message and additional types
 
-// Copyright (C) 2021  Simon Ruderich
+// Copyright (C) 2021-2022  Simon Ruderich
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -53,7 +53,7 @@ type MsgSyncReq struct {
        Files    map[string]*File
        Packages []string
        Services []string
-       Commands []string
+       Commands []*Command
 }
 type MsgSyncResp struct {
        FileChanges    []FileChange
@@ -106,6 +106,11 @@ type File struct {
        TriggerCommands []string
 }
 
+type Command struct {
+       OrigGroup string // group which provided this command
+       Cmd       string
+}
+
 type FileChange struct {
        Path     string
        Created  bool