Mercurial > hg
comparison contrib/chg/hgclient.h @ 28356:a5c773acb018
chg: implement validate in hgclient
This patch implements the corresponding validate method in hgclient.
It will return instruction strings as is without taking any real action.
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 06 Mar 2016 14:21:52 +0000 |
parents | 726f8d6cc324 |
children | c66bc06f1bf6 |
comparison
equal
deleted
inserted
replaced
28355:897a4bbd578b | 28356:a5c773acb018 |
---|---|
18 hgclient_t *hgc_open(const char *sockname); | 18 hgclient_t *hgc_open(const char *sockname); |
19 void hgc_close(hgclient_t *hgc); | 19 void hgc_close(hgclient_t *hgc); |
20 | 20 |
21 pid_t hgc_peerpid(const hgclient_t *hgc); | 21 pid_t hgc_peerpid(const hgclient_t *hgc); |
22 | 22 |
23 const char **hgc_validate(hgclient_t *hgc, const char *const args[], | |
24 size_t argsize); | |
23 int hgc_runcommand(hgclient_t *hgc, const char *const args[], size_t argsize); | 25 int hgc_runcommand(hgclient_t *hgc, const char *const args[], size_t argsize); |
24 void hgc_attachio(hgclient_t *hgc); | 26 void hgc_attachio(hgclient_t *hgc); |
25 const char *hgc_getpager(hgclient_t *hgc, const char *const args[], | 27 const char *hgc_getpager(hgclient_t *hgc, const char *const args[], |
26 size_t argsize); | 28 size_t argsize); |
27 void hgc_setenv(hgclient_t *hgc, const char *const envp[]); | 29 void hgc_setenv(hgclient_t *hgc, const char *const envp[]); |