diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-06-15 13:58:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-15 13:58:30 +0300 |
| commit | 77e4b066cb8d506b4bc944ab4eb2d6e4679e2202 (patch) | |
| tree | 1d549eca619ed36cb881e487cb054c4643ac8376 /pkg/messages/types/svcSetPause.go | |
| parent | change project name to sdp.go (diff) | |
| download | sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.tar.gz sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.tar.bz2 sdp.go-77e4b066cb8d506b4bc944ab4eb2d6e4679e2202.zip | |
enable multithreading with goroutines (#20)
Diffstat (limited to 'pkg/messages/types/svcSetPause.go')
| -rw-r--r-- | pkg/messages/types/svcSetPause.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/messages/types/svcSetPause.go b/pkg/messages/types/svcSetPause.go index b69779f..ad9f2d5 100644 --- a/pkg/messages/types/svcSetPause.go +++ b/pkg/messages/types/svcSetPause.go | |||
| @@ -2,17 +2,17 @@ package messages | |||
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | "github.com/pektezol/bitreader" | 4 | "github.com/pektezol/bitreader" |
| 5 | "github.com/pektezol/sdp.go/pkg/writer" | 5 | "github.com/pektezol/sdp.go/pkg/types" |
| 6 | ) | 6 | ) |
| 7 | 7 | ||
| 8 | type SvcSetPause struct { | 8 | type SvcSetPause struct { |
| 9 | Paused bool | 9 | Paused bool `json:"paused"` |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | func ParseSvcSetPause(reader *bitreader.Reader) SvcSetPause { | 12 | func ParseSvcSetPause(reader *bitreader.Reader, demo *types.Demo) SvcSetPause { |
| 13 | svcSetPause := SvcSetPause{ | 13 | svcSetPause := SvcSetPause{ |
| 14 | Paused: reader.TryReadBool(), | 14 | Paused: reader.TryReadBool(), |
| 15 | } | 15 | } |
| 16 | writer.TempAppendLine("\t\tPaused: %t", svcSetPause.Paused) | 16 | demo.Writer.TempAppendLine("\t\tPaused: %t", svcSetPause.Paused) |
| 17 | return svcSetPause | 17 | return svcSetPause |
| 18 | } | 18 | } |