Comparison

plugins/mod_pubsub.lua @ 3939:b66e9a7593b6

mod_pubsub: Add add_subscription and get_subscriptions to feature_map
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Dec 2010 03:48:51 +0000
parent 3935:2733b56f23b0
child 3940:d55e67e4191a
comparison
equal deleted inserted replaced
3938:a3ecaf46bd82 3939:b66e9a7593b6
185 local feature_map = { 185 local feature_map = {
186 create = { "create-nodes", autocreate_on_publish and "instant-nodes", "item-ids" }; 186 create = { "create-nodes", autocreate_on_publish and "instant-nodes", "item-ids" };
187 retract = { "delete-items", "retract-items" }; 187 retract = { "delete-items", "retract-items" };
188 publish = { "publish" }; 188 publish = { "publish" };
189 get_items = { "retrieve-items" }; 189 get_items = { "retrieve-items" };
190 add_subscription = { "subscribe" };
191 get_subscriptions = { "retrieve-subscriptions" };
190 }; 192 };
191 193
192 local function add_disco_features_from_service(disco, service) 194 local function add_disco_features_from_service(disco, service)
193 for method, features in pairs(feature_map) do 195 for method, features in pairs(feature_map) do
194 if service[method] then 196 if service[method] then