Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/soccr
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@virtuozzo.com>2016-12-14 12:40:58 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2017-01-16 11:04:49 +0300
commit332b945f79a4abbf1ffc1940f1148e9150b922e9 (patch)
tree838cd7a4c458ec6e641a57d3e0d91be006c8cb50 /soccr
parented5081041c4bd733f69f1ee751c9b72fbde34c9b (diff)
soccr: Rename API calls to save/restore
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com> Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'soccr')
-rw-r--r--soccr/soccr.c4
-rw-r--r--soccr/soccr.h10
2 files changed, 6 insertions, 8 deletions
diff --git a/soccr/soccr.c b/soccr/soccr.c
index 30a2ff8ee..fc5e280bd 100644
--- a/soccr/soccr.c
+++ b/soccr/soccr.c
@@ -327,7 +327,7 @@ err_recv:
*/
#define SOCR_DATA_MIN_SIZE (17 * sizeof(__u32))
-int libsoccr_get_sk_data(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigned data_size)
+int libsoccr_save(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigned data_size)
{
struct tcp_info ti;
@@ -622,7 +622,7 @@ static int restore_fin_in_snd_queue(int sk, int acked)
static int libsoccr_set_queue_bytes(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigned data_size,
int queue, char *buf);
-int libsoccr_set_sk_data(struct libsoccr_sk *sk,
+int libsoccr_restore(struct libsoccr_sk *sk,
struct libsoccr_sk_data *data, unsigned data_size)
{
int mstate = 1 << data->state;
diff --git a/soccr/soccr.h b/soccr/soccr.h
index 8c752af21..3ab7b905a 100644
--- a/soccr/soccr.h
+++ b/soccr/soccr.h
@@ -136,7 +136,7 @@ void libsoccr_resume(struct libsoccr_sk *sk);
* Roughly the checkpoint steps for sockets in supported states are
*
* h = libsoccr_pause(sk);
- * libsoccr_get_sk_data(h, &data, sizeof(data))
+ * libsoccr_save(h, &data, sizeof(data))
* inq = libsoccr_get_queue_bytes(h, TCP_RECV_QUEUE, 0)
* outq = libsoccr_get_queue_bytes(h, TCP_SEND_QUEUE, 0)
* getsocname(sk, &name, ...)
@@ -157,7 +157,7 @@ void libsoccr_resume(struct libsoccr_sk *sk);
* data_size shows the size of a buffer. The returned value is the
* amount of bytes put into data (the rest is zeroed with memcpy).
*/
-int libsoccr_get_sk_data(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigned data_size);
+int libsoccr_save(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigned data_size);
/*
* Get a pointer on the contents of queues. The amount of bytes is
@@ -184,9 +184,7 @@ char *libsoccr_get_queue_bytes(struct libsoccr_sk *sk, int queue_id, int steal);
* sk = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
*
* h = libsoccr_pause(sk)
- * bind(sk, &name, ...)
- *
- * libsoccr_set_sk_data(h, &data, sizeof(data))
+ * libsoccr_restore(h, &data, sizeof(data))
*
* libsoccr_resume(h)
*
@@ -197,6 +195,6 @@ char *libsoccr_get_queue_bytes(struct libsoccr_sk *sk, int queue_id, int steal);
/*
* Performs restore actions on bind()-ed socket
*/
-int libsoccr_set_sk_data(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigned data_size);
+int libsoccr_restore(struct libsoccr_sk *sk, struct libsoccr_sk_data *data, unsigned data_size);
#endif