Registered widgets limit removed (#3899)

This commit is contained in:
Bertrand Songis
2016-10-12 17:36:37 +02:00
committed by GitHub
parent 7e8bebfaac
commit f0608f4837
3 changed files with 22 additions and 26 deletions
+2 -3
View File
@@ -23,6 +23,7 @@
#include <inttypes.h>
#include <string.h>
#include <list>
#define MAX_WIDGET_OPTIONS 5
@@ -185,9 +186,7 @@ inline const ZoneOption * Widget::getOptions() const
return getFactory()->getOptions();
}
#define MAX_REGISTERED_WIDGETS 10
extern unsigned int countRegisteredWidgets;
extern const WidgetFactory * registeredWidgets[MAX_REGISTERED_WIDGETS];
extern std::list<const WidgetFactory *> registeredWidgets;
Widget * loadWidget(const char * name, const Zone & zone, Widget::PersistentData * persistentData);
#endif // _WIDGET_H_