#include <unistd.h>
#include <glib.h>
#include <app_manager.h>
-#include <types_internal.h>
+#include <Types.h>
+#include <DBusTypes.h>
#include "DBusServer.h"
#include "access_control/PeerCreds.h"
#include "ClientRequest.h"
#include <glib.h>
#include <list>
-#include <types_internal.h>
+#include <Types.h>
+#include <DBusTypes.h>
#include <context_trigger_types_internal.h>
#include <Json.h>
#include "Server.h"
#include <signal.h>
#include <app_manager.h>
-#include <types_internal.h>
+#include <Types.h>
+#include <DBusTypes.h>
#include "Server.h"
#include "ClientRequest.h"
#include "access_control/PeerCreds.h"
*/
#include <glib.h>
-#include <types_internal.h>
+#include <Types.h>
#include <Json.h>
#include "access_control/Privilege.h"
#include "Server.h"
*/
#include <glib.h>
-#include <types_internal.h>
+#include <Types.h>
#include "Request.h"
ctx::RequestInfo::RequestInfo(int type, int reqId, const char* subj, const char* desc) :
#include <glib.h>
#include <glib-object.h>
-#include <types_internal.h>
+#include <Types.h>
#include "DBusServer.h"
#include "ContextManagerImpl.h"
#include "trigger/Trigger.h"
#include <cynara-session.h>
#include <app_manager.h>
#include <package_manager.h>
-#include <types_internal.h>
+#include <Types.h>
#include "PeerCreds.h"
ctx::Credentials::Credentials(char *pkgId, char *cli, char *sess, char *usr) :
#include <string>
#include <cynara-client.h>
-#include <types_internal.h>
+#include <Types.h>
#include "PeerCreds.h"
#include "Privilege.h"
* limitations under the License.
*/
-#include <types_internal.h>
+#include <Types.h>
#include "../access_control/Privilege.h"
#include "../ContextManagerImpl.h"
#include "ContextMonitor.h"
return true;
}
-int ContextMonitor::__findSub(request_type type, const char* subject, Json* option)
+int ContextMonitor::__findSub(RequestType type, const char* subject, Json* option)
{
// @return request id
std::map<int, SubscrInfo*>* map = (type == REQ_SUBSCRIBE)? &__subscrMap : &___readMap;
return -1;
}
-bool ContextMonitor::__addSub(request_type type, int sid, const char* subject, Json* option, IContextListener* listener)
+bool ContextMonitor::__addSub(RequestType type, int sid, const char* subject, Json* option, IContextListener* listener)
{
std::map<int, SubscrInfo*>* map = (type == REQ_SUBSCRIBE)? &__subscrMap : &___readMap;
return true;
}
-void ContextMonitor::__removeSub(request_type type, const char* subject, Json* option)
+void ContextMonitor::__removeSub(RequestType type, const char* subject, Json* option)
{
std::map<int, SubscrInfo*>* map = (type == REQ_SUBSCRIBE)? &__subscrMap : &___readMap;
}
}
-void ContextMonitor::__removeSub(request_type type, int sid)
+void ContextMonitor::__removeSub(RequestType type, int sid)
{
std::map<int, SubscrInfo*>* map = (type == REQ_SUBSCRIBE)? &__subscrMap : &___readMap;
return;
}
-int ContextMonitor::__addListener(request_type type, int sid, IContextListener* listener)
+int ContextMonitor::__addListener(RequestType type, int sid, IContextListener* listener)
{
// @return number of listeners for the corresponding sid
std::map<int, SubscrInfo*>* map = (type == REQ_SUBSCRIBE)? &__subscrMap : &___readMap;
return info->listenerList.size();
}
-int ContextMonitor::__removeListener(request_type type, int sid, IContextListener* listener)
+int ContextMonitor::__removeListener(RequestType type, int sid, IContextListener* listener)
{
// @return number of listeners for the corresponding sid
std::map<int, SubscrInfo*>* map = (type == REQ_SUBSCRIBE)? &__subscrMap : &___readMap;
#include <list>
#include <map>
#include <Json.h>
+#include <DBusTypes.h>
namespace ctx {
std::map<int, SubscrInfo*> __subscrMap;
std::map<int, SubscrInfo*> ___readMap;
- int __findSub(request_type type, const char *subject, Json *option);
- bool __addSub(request_type type, int sid, const char *subject, Json *option, IContextListener* listener);
- void __removeSub(request_type type, const char *subject, Json *option);
- void __removeSub(request_type type, int sid);
- int __addListener(request_type type, int sid, IContextListener* listener);
- int __removeListener(request_type type, int sid, IContextListener* listener);
+ int __findSub(RequestType type, const char *subject, Json *option);
+ bool __addSub(RequestType type, int sid, const char *subject, Json *option, IContextListener* listener);
+ void __removeSub(RequestType type, const char *subject, Json *option);
+ void __removeSub(RequestType type, int sid);
+ int __addListener(RequestType type, int sid, IContextListener* listener);
+ int __removeListener(RequestType type, int sid, IContextListener* listener);
}; /* class ContextMonitor */
* limitations under the License.
*/
-#include <types_internal.h>
+#include <Types.h>
#include "FactRequest.h"
using namespace ctx;
*/
#include <Json.h>
-#include <types_internal.h>
+#include <Types.h>
#include <context_trigger_types_internal.h>
#include "RuleEvaluator.h"
#include "FactTypes.h"
*/
#include <sstream>
-#include <types_internal.h>
+#include <Types.h>
#include <context_trigger_types_internal.h>
#include "../ContextManagerImpl.h"
#include "RuleManager.h"
#include <context_trigger.h>
#include <context_trigger_types_internal.h>
-#include <types_internal.h>
+#include <Types.h>
#include <TimerManager.h>
#include "Timer.h"
* limitations under the License.
*/
-#include <types_internal.h>
+#include <Types.h>
#include <context_trigger_types_internal.h>
#include "Trigger.h"
#include "ContextMonitor.h"