# fdf_metadata Namespace

# fdf_metadata

## Summary

| ### Functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/namespace/fdf-metadata#namespacefdf__metadata_1a79c31b9fef145b34d1abf03edaf3af29(const std::shared_ptr< https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace > & incoming, std::string_view instance_name)` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< fuchsia_driver_metadata::Metadata > >` |
| `https://fuchsia.dev/reference/cpp/namespace/fdf-metadata#namespacefdf__metadata_1a3ef8398e366406c0627a617c357aa436(const std::shared_ptr< https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace > & incoming, std::string_view instance_name)` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< FidlType >` |
| `https://fuchsia.dev/reference/cpp/namespace/fdf-metadata#namespacefdf__metadata_1a9f7c894296149e35febe3ab04033b9a3(const std::shared_ptr< https://fuchsia.dev/reference/cpp/class/fdf/namespace#classfdf_1_1_namespace > & incoming, std::string_view instance_name)` | `https://fuchsia.dev/reference/cpp/other/singletonzx/result#singletonzx_1_1result< std::optional< FidlType > >` |

| ### Classes ||
|---|---|
| [fdf_metadata::MetadataServer](https://fuchsia.dev/reference/cpp/class/fdf-metadata/metadata-server) |   |

| ### Structs ||
|---|---|
| [fdf_metadata::ObjectDetails](https://fuchsia.dev/reference/cpp/struct/fdf-metadata/object-details) |   |

## Functions

### ConnectToMetadataProtocol

```c++
zx::result< fidl::ClientEnd< fuchsia_driver_metadata::Metadata > > ConnectToMetadataProtocol(
  const std::shared_ptr< fdf::Namespace > & incoming,
  std::string_view instance_name
)
```

### GetMetadata

```c++
zx::result< FidlType > GetMetadata(
  const std::shared_ptr< fdf::Namespace > & incoming,
  std::string_view instance_name
)
```

### GetMetadataIfExists

```c++
zx::result< std::optional< FidlType > > GetMetadataIfExists(
  const std::shared_ptr< fdf::Namespace > & incoming,
  std::string_view instance_name
)
```