summaryrefslogtreecommitdiffstats
path: root/api/src/glfs.c
diff options
context:
space:
mode:
authorKaleb S KEITHLEY <kkeithle@redhat.com>2016-06-13 11:34:51 -0400
committerJeff Darcy <jdarcy@redhat.com>2016-06-14 18:30:21 -0700
commite740b700975bdb1014ede99c65731095bdf81a72 (patch)
tree781f8da0f91339282c98ea848a264550831fb121 /api/src/glfs.c
parent04828f569eede11e11433bf099dbb7cb39c3f3b9 (diff)
api: use versioned symbols for minor ABI change
No need to expand the API/ABI. E.g., see how glfs_lookupat changed between 3.7.0 and 3.7.4 IIRC (I originally argued against versioning the library. I wanted to just add new functions as they were needed, as was initially done for glfs_ipc and glfs_ipc_xd in the master branch for 4.0. But others strongly wanted versioning.) Having made the decision to use versioning, I believe we should continue. At least until we have a public decision that we're no longer going to use versioning. Change-Id: I0c3b2c1cbb297ae2b2864b647c224922987d74ad Signed-off-by: Kaleb S KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/14717 Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'api/src/glfs.c')
-rw-r--r--api/src/glfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index 1cb6bf7a3cf..8db206de007 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -1279,7 +1279,7 @@ invalid_fs:
GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_get_volfile, 3.6.0);
int
-pub_glfs_ipc_xd (struct glfs *fs, int opcode, dict_t *xd_in, dict_t **xd_out)
+pub_glfs_ipc (struct glfs *fs, int opcode, void *xd_in, void **xd_out)
{
xlator_t *subvol = NULL;
int ret = -1;
@@ -1294,7 +1294,7 @@ pub_glfs_ipc_xd (struct glfs *fs, int opcode, dict_t *xd_in, dict_t **xd_out)
goto out;
}
- ret = syncop_ipc (subvol, opcode, xd_in, xd_out);
+ ret = syncop_ipc (subvol, opcode, (dict_t *) xd_in, (dict_t **) xd_out);
DECODE_SYNCOP_ERR (ret);
out:
@@ -1305,12 +1305,12 @@ invalid_fs:
return ret;
}
-GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_ipc_xd, 4.0.0);
+GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_ipc, 4.0.0);
int
-pub_glfs_ipc (struct glfs *fs, int opcode)
+pub_glfs_ipc37 (struct glfs *fs, int opcode)
{
- return pub_glfs_ipc_xd (fs, opcode, NULL, NULL);
+ return pub_glfs_ipc (fs, opcode, NULL, NULL);
}
-GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_ipc, 3.7.0);
+GFAPI_SYMVER_PUBLIC(glfs_ipc37, glfs_ipc, 3.7.0);