7 Teleservice Application Framework
User Manual 195/374
Example
// Global module
T_DBUS_Util mt_DBUS_Util;
sint32 s32_Retval;
s32_Retval = ylogd_create_log_job (&mt_DBUS_Util, "TC3_Logger", 1, 1024*1024, 1, "Test log
job", 500);
if (s32_Retval == C_NO_ERR)
{
// Go on
}
7.3.6.2.2 ylogd_add_log_variable
Function Description
sint32 ylogd_add_log_variable (const T_DBUS_Util *const opt_DBusInstance, const charn *
const opcn_LogJobName , const charn * const opcn_DatapoolName, const charn * const
opcn_ListName, const charn * const opcn_VariableName, const uint32 ou32_Hysteresis)
The function adds a variable to be logged as part of a data logging record of the data logger job
opcn_LogJobName. The value will only be written to the log file in case it differs more than +/- ou32_Hysteresis
from its previous record.
Information Flow
Input Information
holds all D-Bus information
maximum
MAX_DL_NAME_LENGTH
maximum
MAX_DP_NAME_LENGTH
pointer to the data pool name
maximum
MAX_DP_NAME_LENGTH
maximum
MAX_DP_NAME_LENGTH
pointer to the variable name for logging
includes the logging hysteresis
Structure T_DBUS_Util
typedef struct
{
DBusConnection* pt_dbus_conn; // D-BUS connection instance
charn acn_myNameString[128]; // Name of the application, Don't use any
special
// characters, white spaces or new lines!
charn acn_myVersion[128]; // Additional value (for HELLO) signal (opt.)
charn acn_myStatus[128]; // Additional value (for HELLO) signal (opt.)