X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/4e881433f37417ccbda89c09ffdf936855d462d4..c06ef44e7af1571710fd31dd0ab068dd77b1eb2d:/rsm_protocol.h diff --git a/rsm_protocol.h b/rsm_protocol.h index 9cd60bd..5a5b7dd 100644 --- a/rsm_protocol.h +++ b/rsm_protocol.h @@ -8,8 +8,8 @@ namespace rsm_client_protocol { enum status : rpc_protocol::status {OK, ERR, NOTPRIMARY, BUSY}; REMOTE_PROCEDURE_BASE(0x9000); REMOTE_PROCEDURE(1, invoke, (string &, rpc_protocol::proc_id_t, string)); - REMOTE_PROCEDURE(2, members, (vector &, int)); -}; + REMOTE_PROCEDURE(2, members, (std::vector &, int)); +} struct viewstamp { unsigned int vid; @@ -20,8 +20,6 @@ struct viewstamp { LEXICOGRAPHIC_COMPARISON(viewstamp) }; -MARSHALLABLE_STRUCT(viewstamp) - namespace rsm_protocol { enum status : rpc_protocol::status { OK, ERR, BUSY}; @@ -37,15 +35,13 @@ namespace rsm_protocol { REMOTE_PROCEDURE(2, transferreq, (transferres &, string, viewstamp, unsigned)); REMOTE_PROCEDURE(3, transferdonereq, (int &, string, unsigned)); REMOTE_PROCEDURE(4, joinreq, (string &, string, viewstamp)); -}; - -MARSHALLABLE_STRUCT(rsm_protocol::transferres) +} namespace rsm_test_protocol { enum status : rpc_protocol::status {OK, ERR}; REMOTE_PROCEDURE_BASE(0x12000); REMOTE_PROCEDURE(1, net_repair, (status &, int)); REMOTE_PROCEDURE(2, breakpoint, (status &, int)); -}; +} #endif