rls_data.h 641 B

123456789101112131415161718192021222324252627
  1. #ifndef __RLS_DATA_H
  2. #define __RLS_DATA_H
  3. #include "rl_subscription.h"
  4. typedef struct {
  5. /* optimization - when a subscription is flagged as changed,
  6. * this number is increased (means something like priority of
  7. * call to "change all modified RLS") */
  8. int changed_subscriptions;
  9. /* hash, ... */
  10. msg_queue_t notify_mq;
  11. } rls_data_t;
  12. extern rls_data_t *rls;
  13. extern subscription_manager_t *rls_manager;
  14. /* removes all notifications for given qsa_subscription from message queue
  15. * and discards them */
  16. void destroy_notifications(qsa_subscription_t *s);
  17. int rls_init();
  18. int rls_destroy();
  19. void rls_lock();
  20. void rls_unlock();
  21. #endif