Namespaces

Records

Functions

  • std::unique_ptr<fidl::ServiceConnector> OpenNamedServiceAt (const fidl::InterfaceHandle<fuchsia::io::Directory> & handle, const std::string & service_path, const std::string & instance)

    Opens a named |instance| of a service at |service_path|, within a directory

    provided by |handle|.

    The instance is opened under `service_path/instance` within |handle|.

    If |instance| is not provided, the default instance is opened.

    Returns a `fuchsia::io::Directory`, representing an instance of the service.

    Defined at line 31 of file ../../sdk/lib/sys/service/cpp/service.cc

  • template <typename Service>
    Service OpenServiceAt (const fidl::InterfaceHandle<fuchsia::io::Directory> & handle, const std::string & instance)

    Opens a named |instance| of a |Service|, within a directory provided by

    |handle|.

    The instance is opened under `Service::Name/instance` within |handle|.

    If |instance| is not provided, the default instance is opened.

    Returns a |Service|, which is a FIDL-generated service.

    Defined at line 38 of file ../../sdk/lib/sys/service/cpp/service.h

  • fidl::InterfaceHandle<fuchsia::io::Directory> OpenNamedServiceAggregateAt (const fidl::InterfaceHandle<fuchsia::io::Directory> & handle, const std::string & service_path)

    Opens a service aggregate at |service_path|, within a directory provided by

    |handle|.

    A service aggregate contains zero or more instances of a service.

    Returns a `fuchsia::io::Directory`, representing a service aggregate.

    Defined at line 46 of file ../../sdk/lib/sys/service/cpp/service_aggregate.cc

  • std::unique_ptr<fidl::ServiceConnector> OpenNamedServiceIn (fdio_ns_t * ns, const std::string & service_path, const std::string & instance)

    Opens a named |instance| of a service at |service_path|, within a namespace

    provided by |ns|.

    If |service_path| is an absolute path, the instance is opened under

    `service_path/instance` within |ns|. Otherwise, if |service_path| is a

    relative path, the instance is opened under `/svc/service_path/instance`

    within |ns|.

    If |instance| is not provided, the default instance is opened.

    |ns| must not be null.

    Returns a `fuchsia::io::Directory`, representing an instance of the service.

    Defined at line 49 of file ../../sdk/lib/sys/service/cpp/service.cc

  • template <typename Service>
    ServiceAggregate<Service> OpenServiceAggregateAt (const fidl::InterfaceHandle<fuchsia::io::Directory> & handle)

    Opens a service aggregate for |Service|, within a directory provided by

    |handle|.

    A service aggregate contains zero or more instances of a service.

    Returns a |ServiceAggregate| for a FIDL-generated service.

    Defined at line 58 of file ../../sdk/lib/sys/service/cpp/service_aggregate.h

  • fidl::InterfaceHandle<fuchsia::io::Directory> OpenNamedServiceAggregateIn (fdio_ns_t * ns, const std::string & service_path)

    Opens a service aggregate at |service_path|, within a namespace provided by

    |ns|.

    A service aggregate contains zero or more instances of a service.

    |ns| must not be null.

    Returns a `fuchsia::io::Directory`, representing a service aggregate.

    Defined at line 62 of file ../../sdk/lib/sys/service/cpp/service_aggregate.cc

  • std::unique_ptr<fidl::ServiceConnector> OpenNamedService (const std::string & service_path, const std::string & instance)

    Opens a named |instance| of a service at |service_path|, within the default

    namespace.

    If |service_path| is an absolute path, the instance is opened under

    `service_path/instance` within the default namespace. Otherwise, if

    |service_path| is a relative path, the instance is opened under

    `/svc/service_path/instance` within the default namespace.

    If |instance| is not provided, the default instance is opened.

    See `fdio_ns_get_installed()`.

    Returns a `fuchsia::io::Directory`, representing an instance of the service.

    Defined at line 67 of file ../../sdk/lib/sys/service/cpp/service.cc

  • template <typename Service>
    Service OpenServiceIn (fdio_ns_t * ns, const std::string & instance)

    Opens a named |instance| of a |Service|, within a namespace provided by

    |ns|.

    The instance is opened under `/svc/Service::Name/instance` within |ns|.

    If |instance| is not provided, the default instance is opened.

    |ns| must not be null.

    Returns a |Service|, which is a FIDL-generated service.

    Defined at line 70 of file ../../sdk/lib/sys/service/cpp/service.h

  • fidl::InterfaceHandle<fuchsia::io::Directory> OpenNamedServiceAggregate (const std::string & service_path)

    Opens a service aggregate at |service_path|, within the default namespace.

    A service aggregate contains zero or more instances of a service.

    See `fdio_ns_get_installed()`.

    Returns a `fuchsia::io::Directory`, representing a service aggregate.

    Defined at line 79 of file ../../sdk/lib/sys/service/cpp/service_aggregate.cc

  • template <typename Service>
    ServiceAggregate<Service> OpenServiceAggregateIn (fdio_ns_t * ns)

    Opens a service aggregate for |Service|, within a namespace provided by |ns|.

    A service aggregate contains zero or more instances of a service.

    |ns| must not be null.

    Returns a |ServiceAggregate| for a FIDL-generated service.

    Defined at line 82 of file ../../sdk/lib/sys/service/cpp/service_aggregate.h

  • template <typename Service>
    Service OpenService (const std::string & instance)

    Opens a named |instance| of a |Service|, within the default namespace.

    The instance is opened under `/svc/Service::Name/instance` within the default

    namespace.

    If |instance| is not provided, the default instance is opened.

    See `fdio_ns_get_installed()`.

    Returns a |Service|, which is a FIDL-generated service.

    Defined at line 101 of file ../../sdk/lib/sys/service/cpp/service.h

  • template <typename Service>
    ServiceAggregate<Service> OpenServiceAggregate ()

    Opens a service aggregate for |Service|, within the default namespace.

    A service aggregate contains zero or more instances of a service.

    See `fdio_ns_get_installed()`.

    Returns a |ServiceAggregate| for a FIDL-generated service.

    Defined at line 104 of file ../../sdk/lib/sys/service/cpp/service_aggregate.h

Variables

const char[] kDefaultInstance

Defined at line 29 of file ../../sdk/lib/sys/service/cpp/service.cc