MCPcopy Create free account
hub / github.com/78/tenbox / MimeToVdAgentType

Function MimeToVdAgentType

src/daemon/cloud_tunnel.cpp:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84constexpr uint32_t kVdAgentClipboardImagePng = 2;
85
86uint32_t MimeToVdAgentType(const std::string& mime) {
87 if (mime == "text/plain") return kVdAgentClipboardUtf8Text;
88 if (mime == "image/png") return kVdAgentClipboardImagePng;
89 return 0;
90}
91
92const char* VdAgentTypeToMime(uint32_t value) {
93 switch (value) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected