MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
protocol_plugin.h
1
/*
2
* Protocol plugin defintions.
3
*/
4
5
#ifndef PROTOCOL_PLUGIN_H
6
#define PROTOCOL_PLUGIN_H 1
7
21
typedef
void (*
cb_responder
)(responder_ctx *responder_data,
22
protocol_binary_response_header
*hdr,
23
char
*data,
24
size_t
data_len);
25
29
typedef
int
connection_id
;
30
34
enum
plugin_cb_result
{
35
cb_done
,
36
cb_defer
,
37
cb_hangup
,
38
};
39
53
typedef
enum
plugin_cb_result
(*
plugin_cb
)(
void
*userdata,
54
connection_id
conn_id,
55
cb_responder
responder,
56
responder_ctx *responder_data,
57
protocol_binary_response_header
*hdr,
58
char
*data,
59
size_t
data_len);
60
64
enum
plugin_cb_state
{
65
cb_connected
,
66
cb_disconnected
67
};
68
76
typedef
void (*
plugin_conn_observer
)(
void
*userdata,
77
enum
plugin_cb_state
state,
78
connection_id
conn_id);
79
87
void
plugin_register_callback
(uint8_t cmd_id,
88
plugin_cb
callback,
89
void
*userdata);
90
98
void
plugin_get_callback
(int8_t cmd_id,
99
plugin_cb
*current_callback,
100
void
**current_userdata);
101
108
void
plugin_register_conn_observer
(
void
*userdata,
109
plugin_conn_observer
obs);
110
116
void
plugin_unregister_conn_observer
(
plugin_conn_observer
obs);
117
122
#endif PROTOCOL_PLUGIN_H
plugin
innodb_memcached
daemon_memcached
include
memcached
protocol_plugin.h
Generated on Sat Nov 9 2013 01:25:12 for MySQL 5.6.14 Source Code Document by
1.8.1.2