| 47 */ |
47 */ |
| 48 PURPLE_AVAILABLE_IN_3_0 |
48 PURPLE_AVAILABLE_IN_3_0 |
| 49 G_DECLARE_INTERFACE(PurpleProtocolIM, purple_protocol_im, PURPLE, PROTOCOL_IM, |
49 G_DECLARE_INTERFACE(PurpleProtocolIM, purple_protocol_im, PURPLE, PROTOCOL_IM, |
| 50 PurpleProtocol) |
50 PurpleProtocol) |
| 51 |
51 |
| 52 /** |
|
| 53 * PurpleProtocolIMInterface: |
|
| 54 * @send: This protocol function should return a positive value on |
|
| 55 * success. If the message is too big to be sent, return |
|
| 56 * <literal>-E2BIG</literal>. If the account is not connected, |
|
| 57 * return <literal>-ENOTCONN</literal>. If the protocol is unable |
|
| 58 * to send the message for another reason, return some other |
|
| 59 * negative value. You can use one of the valid #errno values, or |
|
| 60 * just big something. If the message should not be echoed to the |
|
| 61 * conversation window, return 0. |
|
| 62 * @send_typing: If this protocol requires the #PURPLE_IM_TYPING message to be |
|
| 63 * sent repeatedly to signify that the user is still typing, then |
|
| 64 * the protocol should return the number of seconds to wait before |
|
| 65 * sending a subsequent notification. Otherwise the protocol |
|
| 66 * should return 0. |
|
| 67 * |
|
| 68 * The protocol IM interface that needs to be implemented to send one to one |
|
| 69 * messages. |
|
| 70 * |
|
| 71 * Since: 3.0 |
|
| 72 */ |
|
| 73 struct _PurpleProtocolIMInterface { |
52 struct _PurpleProtocolIMInterface { |
| 74 /*< private >*/ |
53 /*< private >*/ |
| 75 GTypeInterface parent; |
54 GTypeInterface parent; |
| 76 |
55 |
| 77 /*< public >*/ |
56 /*< public >*/ |