10 int (*invite
)(struct agent
*, struct session
*);
11 int (*accept
)(struct agent
*, struct session
*);
12 int (*hangup
)(struct agent
*, struct session
*);
14 int (*get_endpoint
)(struct agent
*, struct session
*);
18 const struct agent_ops
*ops
;
21 static inline int agent_invite(struct agent
*agent
, struct session
*session
)
23 return agent
->ops
->invite(agent
, session
);
26 static inline int agent_accept(struct agent
*agent
, struct session
*session
)
28 return agent
->ops
->accept(agent
, session
);
31 static inline int agent_hangup(struct agent
*agent
, struct session
*session
)
33 return agent
->ops
->hangup(agent
, session
);
36 static inline int agent_get_endpoint(struct agent
*agent
, struct session
*session
)
38 return agent
->ops
->get_endpoint(agent
, session
);
This page took 0.04087 seconds and 5 git commands to generate.