template <>

class WireServer

Defined at line 1471 of file fidling/gen/sdk/fidl/fuchsia.storage.partitions/fuchsia.storage.partitions/cpp/fidl/fuchsia.storage.partitions/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_storage_partitions::PartitionsManager>|

and |::fidl::ServerEnd

<

::fuchsia_storage_partitions::PartitionsManager>|).

Public Methods

void GetBlockInfo (GetBlockInfoCompleter::Sync & completer)

Returns the dimensions of the block device the partition manager resides in.

void CreateTransaction (CreateTransactionCompleter::Sync & completer)

Starts a new transaction to modify the partition table. The transaction will only be

applied when `CommitTransaction` is called. Only one transaction may be active at any given

time. Closing all handles to the returned event will cancel the transaction.

Changes are added to the transaction via the `Partition` interface, passing in a

duplicate of the `transaction` object.

All changes in the transaction are applied atomically.

void CommitTransaction (::fuchsia_storage_partitions::wire::PartitionsManagerCommitTransactionRequest * request, CommitTransactionCompleter::Sync & completer)

Commits the changes pending in the transaction.

void AddPartition (::fuchsia_storage_partitions::wire::PartitionsManagerAddPartitionRequest * request, AddPartitionCompleter::Sync & completer)

Allocates a new partition in `transaction`. Fails if there is insufficient space for the

requested partition. There must be an empty slot in the partition table (the table will not

be resized).

void WireServer ()

Defined at line 1474 of file fidling/gen/sdk/fidl/fuchsia.storage.partitions/fuchsia.storage.partitions/cpp/fidl/fuchsia.storage.partitions/cpp/wire_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~WireServer ()

Defined at line 1475 of file fidling/gen/sdk/fidl/fuchsia.storage.partitions/fuchsia.storage.partitions/cpp/fidl/fuchsia.storage.partitions/cpp/wire_messaging.h