diff options
| author | Stefan Boberg <[email protected]> | 2021-09-15 22:12:08 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-15 22:12:08 +0200 |
| commit | 629462da1a74c760b966f30a3f0e038b1ad270bb (patch) | |
| tree | c24b0dd0191d3bc83543a2cd4e34571c5ee5bd45 /zencore/include | |
| parent | Added session id generation and code to include it in HttpClient HTTP requests (diff) | |
| download | zen-629462da1a74c760b966f30a3f0e038b1ad270bb.tar.xz zen-629462da1a74c760b966f30a3f0e038b1ad270bb.zip | |
Made ZenContentType enum members have fixed value (for persistence), and added kCOUNT for iteration over the members
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/iobuffer.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/zencore/include/zencore/iobuffer.h b/zencore/include/zencore/iobuffer.h index 28772e219..c3860f2b0 100644 --- a/zencore/include/zencore/iobuffer.h +++ b/zencore/include/zencore/iobuffer.h @@ -13,14 +13,16 @@ struct IoBufferExtendedCore; enum class ZenContentType : uint8_t { - kBinary, // Note that since this is zero, this will be the default value in IoBuffer - kText, - kJSON, - kCbObject, - kCbPackage, - kYAML, - kCbPackageOffer, - kUnknownContentType + kBinary = 0, // Note that since this is zero, this will be the default value in IoBuffer + kText = 1, + kJSON = 2, + kCbObject = 3, + kCbPackage = 4, + kYAML = 5, + kCbPackageOffer = 6, + kCompressedBinary = 7, + kUnknownContentType = 8, + kCOUNT }; struct IoBufferFileReference |