mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
Merge branch 'issue195-rlm_filewrite' of https://github.com/deltecent/rivendell into deltecent-issue195-rlm_filewrite
This commit is contained in:
@@ -528,3 +528,15 @@ const char *RLMGetStringValue(void *ptr,const char *filename,
|
||||
delete p;
|
||||
return host->plugin_value_string;
|
||||
}
|
||||
|
||||
|
||||
const char *RLMDateTimeDecode(void *ptr, const char *format,
|
||||
const char *svc_name)
|
||||
{
|
||||
RLMHost *host=(RLMHost *)ptr;
|
||||
strncpy(host->plugin_value_string,
|
||||
RDDateTimeDecode(format,QDateTime::currentDateTime(),
|
||||
rdstation_conf,air_config,
|
||||
svc_name),1024);
|
||||
return host->plugin_value_string;
|
||||
}
|
||||
|
||||
@@ -98,6 +98,8 @@ class RDRLMHost : public QObject
|
||||
friend const char *RLMGetStringValue(void *ptr,const char *filename,
|
||||
const char *section,const char *label,
|
||||
const char *default_value);
|
||||
friend const char *RLMDateTimeDecode(void *ptr, const char *format,
|
||||
const char *svc_name);
|
||||
char plugin_value_string[1024];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user