Lines Matching refs:typeCode

958 int readMessageItem(const std::string& typeCode, sdbusplus::message_t& m,  in readMessageItem()  argument
966 int r = sd_bus_message_read_basic(m.get(), typeCode.front(), &value); in readMessageItem()
970 typeCode); in readMessageItem()
981 inline int readDictEntryFromMessage(const std::string& typeCode, in readDictEntryFromMessage() argument
985 std::vector<std::string> types = dbusArgSplit(typeCode); in readDictEntryFromMessage()
994 typeCode.c_str()); in readDictEntryFromMessage()
1040 inline int readArrayFromMessage(const std::string& typeCode, in readArrayFromMessage() argument
1043 if (typeCode.size() < 2) in readArrayFromMessage()
1045 BMCWEB_LOG_ERROR("Type code {} too small for an array", typeCode); in readArrayFromMessage()
1049 std::string containedType = typeCode.substr(1); in readArrayFromMessage()
1117 inline int readStructFromMessage(const std::string& typeCode, in readStructFromMessage() argument
1120 if (typeCode.size() < 3) in readStructFromMessage()
1122 BMCWEB_LOG_ERROR("Type code {} too small for a struct", typeCode); in readStructFromMessage()
1126 std::string containedTypes = typeCode.substr(1, typeCode.size() - 2); in readStructFromMessage()
1196 for (const std::string& typeCode : returnTypes) in convertDBusToJSON() local
1205 if (typeCode == "s" || typeCode == "g" || typeCode == "o") in convertDBusToJSON()
1207 r = readMessageItem<char*>(typeCode, m, *thisElement); in convertDBusToJSON()
1213 else if (typeCode == "b") in convertDBusToJSON()
1215 r = readMessageItem<int>(typeCode, m, *thisElement); in convertDBusToJSON()
1223 else if (typeCode == "u") in convertDBusToJSON()
1225 r = readMessageItem<uint32_t>(typeCode, m, *thisElement); in convertDBusToJSON()
1231 else if (typeCode == "i") in convertDBusToJSON()
1233 r = readMessageItem<int32_t>(typeCode, m, *thisElement); in convertDBusToJSON()
1239 else if (typeCode == "x") in convertDBusToJSON()
1241 r = readMessageItem<int64_t>(typeCode, m, *thisElement); in convertDBusToJSON()
1247 else if (typeCode == "t") in convertDBusToJSON()
1249 r = readMessageItem<uint64_t>(typeCode, m, *thisElement); in convertDBusToJSON()
1255 else if (typeCode == "n") in convertDBusToJSON()
1257 r = readMessageItem<int16_t>(typeCode, m, *thisElement); in convertDBusToJSON()
1263 else if (typeCode == "q") in convertDBusToJSON()
1265 r = readMessageItem<uint16_t>(typeCode, m, *thisElement); in convertDBusToJSON()
1271 else if (typeCode == "y") in convertDBusToJSON()
1273 r = readMessageItem<uint8_t>(typeCode, m, *thisElement); in convertDBusToJSON()
1279 else if (typeCode == "d") in convertDBusToJSON()
1281 r = readMessageItem<double>(typeCode, m, *thisElement); in convertDBusToJSON()
1287 else if (typeCode == "h") in convertDBusToJSON()
1289 r = readMessageItem<int>(typeCode, m, *thisElement); in convertDBusToJSON()
1295 else if (typeCode.starts_with("a")) in convertDBusToJSON()
1297 r = readArrayFromMessage(typeCode, m, *thisElement); in convertDBusToJSON()
1303 else if (typeCode.starts_with("(") && typeCode.ends_with(")")) in convertDBusToJSON()
1305 r = readStructFromMessage(typeCode, m, *thisElement); in convertDBusToJSON()
1311 else if (typeCode.starts_with("v")) in convertDBusToJSON()
1321 BMCWEB_LOG_ERROR("Invalid D-Bus signature type {}", typeCode); in convertDBusToJSON()