"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/server/core/notification_channel.cpp" between
netxms-3.1.352.tar.gz and netxms-3.1.361.tar.gz

About: NetXMS is a multi-platform open source network management and monitoring system.

notification_channel.cpp  (netxms-3.1.352):notification_channel.cpp  (netxms-3.1.361)
skipping to change at line 511 skipping to change at line 511
static NotificationChannel *CreateNotificationChannel(const TCHAR *name, const T CHAR *description, const TCHAR *driverName, char *configuration) static NotificationChannel *CreateNotificationChannel(const TCHAR *name, const T CHAR *description, const TCHAR *driverName, char *configuration)
{ {
NCDriverDescriptor *dd = s_driverList.get(driverName); NCDriverDescriptor *dd = s_driverList.get(driverName);
NCDriver *driver = NULL; NCDriver *driver = NULL;
NCDriverServerStorageManager *storageManager = new NCDriverServerStorageManag er(name); NCDriverServerStorageManager *storageManager = new NCDriverServerStorageManag er(name);
const NCConfigurationTemplate *confTemplate = NULL; const NCConfigurationTemplate *confTemplate = NULL;
StringBuffer errorMessage; StringBuffer errorMessage;
if (dd != NULL) if (dd != NULL)
{ {
Config config; Config config;
if (config.loadConfigFromMemory(configuration, (int)strlen(configuration), driverName, NULL, true, false)) if (config.loadConfigFromMemory(configuration, strlen(configuration), driv erName, NULL, true, false))
{ {
driver = dd->instanceFactory(&config, storageManager); driver = dd->instanceFactory(&config, storageManager);
if (driver != NULL) if (driver != NULL)
{ {
confTemplate = dd->confTemplate; confTemplate = dd->confTemplate;
} }
else else
{ {
errorMessage.append(_T("Unable to create instance of driver ")); errorMessage.append(_T("Unable to create instance of driver "));
errorMessage.append(driverName); errorMessage.append(driverName);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)