![]() |
![]() |
![]() |
libinfinity-0.6 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
InfAdoptedUserInfAdoptedUser — User in a InfAdoptedUser. |
#include <libinfinity/adopted/inf-adopted-user.h> InfAdoptedUser; struct InfAdoptedUserClass; guint inf_adopted_user_get_component (InfAdoptedUser *user
,guint id
); InfAdoptedStateVector * inf_adopted_user_get_vector (InfAdoptedUser *user
); void inf_adopted_user_set_vector (InfAdoptedUser *user
,InfAdoptedStateVector *vec
); InfAdoptedRequestLog * inf_adopted_user_get_request_log (InfAdoptedUser *user
);
"request-log" InfAdoptedRequestLog* : Read / Write / Construct Only "vector" InfAdoptedStateVector* : Read / Write
InfAdoptedUser is a InfUser-derived class that is used in InfAdoptedSession. It holds all user-specific information that is needed by InfAdoptedAlgorithm to handle the concurrency control. This includes the user's request log which stores all the requests made by the user and a state vector which specifies the document state that the user has, as known to the local host. This information is extracted from the most recent request received from the user.
typedef struct _InfAdoptedUser InfAdoptedUser;
InfAdoptedUser is an opaque data type. You should only access it via the public API functions.
struct InfAdoptedUserClass { };
This structure does not contain any public fields.
guint inf_adopted_user_get_component (InfAdoptedUser *user
,guint id
);
Returns the amount of requests user
is guaranteed to have processed from
the user with ID id
.
|
A InfAdoptedUser. |
|
The component to retrieve. |
Returns : |
The number of requests user has processed from id . |
InfAdoptedStateVector * inf_adopted_user_get_vector (InfAdoptedUser *user
);
Returns the current vector time of user
.
|
A InfAdoptedUser. |
Returns : |
The current vector time of user . |
void inf_adopted_user_set_vector (InfAdoptedUser *user
,InfAdoptedStateVector *vec
);
Updates the state vector of user
. This function takes ownership of vec
.
|
A InfAdoptedUser. |
|
A InfAdoptedStateVector. |
InfAdoptedRequestLog * inf_adopted_user_get_request_log (InfAdoptedUser *user
);
Returns the request log of user
.
|
A InfAdoptedUser. |
Returns : |
User's InfAdoptedRequestLog. |
"request-log"
property"request-log" InfAdoptedRequestLog* : Read / Write / Construct Only
Request log of this user.
"vector"
property"vector" InfAdoptedStateVector* : Read / Write
The state this user is currently at.