~ci-train-bot/location-service/location-service-ubuntu-vivid-landing-019

« back to all changes in this revision

Viewing changes to include/location_service/com/ubuntu/location/provider_factory.h

  • Committer: CI Train Bot
  • Author(s): Scott Sweeny
  • Date: 2016-01-06 16:15:26 UTC
  • mfrom: (197.4.11 async-providers.15.04)
  • Revision ID: ci-train-bot@canonical.com-20160106161526-ayi7kslo1eon3d53
Allow providers to register themselves asynchronously Fixes: #1415029
Approved by: Thomas Voß

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    // --provider=remote::Provider@gps --remote::Provider@gps::name="com.ubuntu.android.gps.Provider" --remote::Provider@gps::path="/com/ubuntu/android/gps/Provider"
55
55
    Provider::Ptr create_provider_for_name_with_config(const std::string& name, const Configuration& config);
56
56
 
 
57
    // Async version of above.
 
58
    void create_provider_for_name_with_config(const std::string& name, const Configuration& config, const std::function<void(Provider::Ptr)>& cb);
 
59
 
57
60
    void enumerate(const std::function<void(const std::string&, const Factory&)>& enumerator);
58
61
 
59
62
  private: