MCPcopy Create free account
hub / github.com/MhmRdd/NoHello / parsePropagation

Method parsePropagation

module/src/main/cpp/mountsinfo.cpp:180–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 void parsePropagation(const std::string& pg) {
181 if (pg.find("master:") == 0) {
182 propagation.type = PropagationType::SLAVE;
183 propagation.id = std::stoi(pg.substr(7));
184 } else if (pg.find("shared:") == 0) {
185 propagation.type = PropagationType::SHARED;
186 propagation.id = std::stoi(pg.substr(7));
187 } else if (pg == "unbindable") {
188 propagation.type = PropagationType::UNBINDABLE;
189 } else if (pg == "private") {
190 propagation.type = PropagationType::PRIVATE;
191 }
192 }
193
194 void parseOptions(const std::string& opt) {
195 mnt_opts.parse(opt);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected