Skip to content

Commit 43bfbd8

Browse files
committed
Rename from previous acronym (ppec became pfc)
1 parent fae994f commit 43bfbd8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

ext/mysqlnd/mysqlnd_ext_plugin.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ mysqlnd_plugin__get_plugin_stmt_data(const MYSQLND_STMT * stmt, unsigned int plu
139139
/* }}} */
140140

141141

142-
/* {{{ mysqlnd_plugin__get_plugin_ppec_data */
142+
/* {{{ mysqlnd_plugin__get_plugin_pfc_data */
143143
static void **
144-
mysqlnd_plugin__get_plugin_ppec_data(const MYSQLND_PFC * ppec, unsigned int plugin_id)
144+
mysqlnd_plugin__get_plugin_pfc_data(const MYSQLND_PFC * pfc, unsigned int plugin_id)
145145
{
146-
DBG_ENTER("mysqlnd_plugin__get_plugin_ppec_data");
146+
DBG_ENTER("mysqlnd_plugin__get_plugin_pfc_data");
147147
DBG_INF_FMT("plugin_id=%u", plugin_id);
148-
if (!ppec || plugin_id >= mysqlnd_plugin_count()) {
148+
if (!pfc || plugin_id >= mysqlnd_plugin_count()) {
149149
return NULL;
150150
}
151-
DBG_RETURN((void *)((char *)ppec + sizeof(MYSQLND_PFC) + plugin_id * sizeof(void *)));
151+
DBG_RETURN((void *)((char *)pfc + sizeof(MYSQLND_PFC) + plugin_id * sizeof(void *)));
152152
}
153153
/* }}} */
154154

@@ -176,7 +176,7 @@ struct st_mysqlnd_plugin__plugin_area_getters mysqlnd_plugin_area_getters =
176176
mysqlnd_plugin__get_plugin_result_buffered_data_c,
177177
mysqlnd_plugin__get_plugin_stmt_data,
178178
mysqlnd_plugin__get_plugin_protocol_data,
179-
mysqlnd_plugin__get_plugin_ppec_data,
179+
mysqlnd_plugin__get_plugin_pfc_data,
180180
mysqlnd_plugin__get_plugin_vio_data,
181181
};
182182

ext/mysqlnd/mysqlnd_ext_plugin.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct st_mysqlnd_plugin__plugin_area_getters
2929
void ** (*get_result_buffered_aread_c)(const MYSQLND_RES_BUFFERED_C * result, unsigned int plugin_id);
3030
void ** (*get_stmt_area)(const MYSQLND_STMT * stmt, unsigned int plugin_id);
3131
void ** (*get_protocol_decoder_area)(const MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY * factory, unsigned int plugin_id);
32-
void ** (*get_ppec_area)(const MYSQLND_PFC * ppec, unsigned int plugin_id);
32+
void ** (*get_pfc_area)(const MYSQLND_PFC * pfc, unsigned int plugin_id);
3333
void ** (*get_vio_area)(const MYSQLND_VIO * vio, unsigned int plugin_id);
3434
};
3535

@@ -43,8 +43,8 @@ extern struct st_mysqlnd_plugin__plugin_area_getters mysqlnd_plugin_area_getters
4343
#define mysqlnd_plugin_get_plugin_result_buffered_data_c(res, p_id) mysqlnd_plugin_area_getters.get_result_buffered_aread_c((res), (p_id))
4444
#define mysqlnd_plugin_get_plugin_stmt_data(stmt, p_id) mysqlnd_plugin_area_getters.get_stmt_area((stmt), (p_id))
4545
#define mysqlnd_plugin_get_plugin_protocol_data(proto, p_id) mysqlnd_plugin_area_getters.get_protocol_decoder_area((proto), (p_id))
46-
#define mysqlnd_plugin_get_plugin_ppec_data(ppec, p_id) mysqlnd_plugin_area_getters.get_ppec_area((ppec), (p_id))
47-
#define mysqlnd_plugin_get_plugin_vio_data(vio, p_id) mysqlnd_plugin_area_getters.get_ppec_area((vio), (p_id))
46+
#define mysqlnd_plugin_get_plugin_pfc_data(pfc, p_id) mysqlnd_plugin_area_getters.get_pfc_area((pfc), (p_id))
47+
#define mysqlnd_plugin_get_plugin_vio_data(vio, p_id) mysqlnd_plugin_area_getters.get_pfc_area((vio), (p_id))
4848

4949

5050
struct st_mysqlnd_plugin_methods_xetters
@@ -97,11 +97,11 @@ struct st_mysqlnd_plugin_methods_xetters
9797
void (*set)(MYSQLND_CLASS_METHODS_TYPE(mysqlnd_protocol_payload_decoder_factory) *methods);
9898
} protocol;
9999

100-
struct st_mnd_ppec_xetters
100+
struct st_mnd_pfc_xetters
101101
{
102102
MYSQLND_CLASS_METHODS_TYPE(mysqlnd_protocol_packet_frame_codec) * (*get)();
103103
void (*set)(MYSQLND_CLASS_METHODS_TYPE(mysqlnd_protocol_packet_frame_codec) * methods);
104-
} ppec;
104+
} pfc;
105105

106106
struct st_mnd_vio_xetters
107107
{
@@ -149,8 +149,8 @@ extern struct st_mysqlnd_plugin_methods_xetters mysqlnd_plugin_methods_xetters;
149149
#define mysqlnd_protocol_get_methods() mysqlnd_plugin_methods_xetters.protocol.get()
150150
#define mysqlnd_protocol_set_methods(m) mysqlnd_plugin_methods_xetters.protocol.set((m))
151151

152-
#define mysqlnd_pfc_get_methods() mysqlnd_plugin_methods_xetters.ppec.get()
153-
#define mysqlnd_pfc_set_methods(m) mysqlnd_plugin_methods_xetters.ppec.set((m))
152+
#define mysqlnd_pfc_get_methods() mysqlnd_plugin_methods_xetters.pfc.get()
153+
#define mysqlnd_pfc_set_methods(m) mysqlnd_plugin_methods_xetters.pfc.set((m))
154154

155155
#define mysqlnd_vio_get_methods() mysqlnd_plugin_methods_xetters.vio.get()
156156
#define mysqlnd_vio_set_methods(m) mysqlnd_plugin_methods_xetters.vio.set((m))

0 commit comments

Comments
 (0)