sapling/eden/fs/service/streamingeden.thrift
Philip Jameson db24c8b7c9 Fix the include prefix for c++ generated code
Summary: We were previously potentially deleting the include prefix. We also weren't using the cpp2 include prefix if the global one wasn't set. This makes sure we use it, and fixes a bug where 'X_types.h' was included without a full prefix.

Reviewed By: yfeldblum

Differential Revision: D6236108

fbshipit-source-id: 076747fcab2b1414bafa42c9e481ba1e1e5df4b1
2017-11-09 15:35:58 -08:00

20 lines
752 B
Thrift

include "eden/fs/service/eden.thrift"
namespace cpp2 facebook.eden
/** This file holds definitions for the streaming flavor of the Eden interface
* This is only available to cpp2 clients and won't compile for other
* language/runtimes. */
service StreamingEdenService extends eden.EdenService {
/** Request notification about changes to the journal for
* the specified mountPoint.
* The JournalPosition at the time of the subscribe call
* will be pushed to the client, and then each change will
* be pushed to the client in near-real-time.
* The client may then use methods like getFilesChangedSince()
* to determine the precise nature of the changes.
*/
stream<eden.JournalPosition> subscribe(
1: string mountPoint)
}