#pragma once #include #include #include namespace attn { /** * Create a dbus method * * Find the dbus service associated with the dbus object path and create * a dbus method for calling the specified dbus interface and function. * * @param i_path - dbus object path * @param i_interface - dbus method interface * @param i_function - dbus interface function * @param o_method - method that is created * @return non-zero if error * **/ int dbusMethod(const std::string& i_path, const std::string& i_interface, const std::string& i_function, sdbusplus::message_t& o_method); /** * Create a PEL from raw PEL data * * Create a PEL based on the pel defined in the data buffer specified. * * @param i_buffer - buffer containing a raw PEL */ void createPelRaw(const std::vector& i_buffer); /** * Get file descriptor of exisitng PEL * * The backend logging code will search for a PEL having the provided pel id * and return a file descriptor of a file containing this pel in raw form. * * @param i_pelid - the PEL ID * @return file descriptor or -1 if error */ int getPel(const uint32_t i_pelId); } // namespace attn