Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
4757c6d1
Commit
4757c6d1
authored
Jan 05, 2012
by
Pieter Noordhuis
Browse files
Consistently use named variables in prototypes
parent
307e29ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
context.h
View file @
4757c6d1
...
@@ -18,14 +18,14 @@ struct redis_context_s {
...
@@ -18,14 +18,14 @@ struct redis_context_s {
int
redis_context_init
(
redis_context
*
ctx
);
int
redis_context_init
(
redis_context
*
ctx
);
int
redis_context_destroy
(
redis_context
*
ctx
);
int
redis_context_destroy
(
redis_context
*
ctx
);
int
redis_context_set_timeout
(
redis_context
*
,
unsigned
long
us
);
int
redis_context_set_timeout
(
redis_context
*
ctx
,
unsigned
long
us
);
unsigned
long
redis_handle_get_timeout
(
redis_handle
*
);
unsigned
long
redis_handle_get_timeout
(
redis_handle
*
ctx
);
int
redis_context_connect_address
(
redis_context
*
,
const
redis_address
addr
);
int
redis_context_connect_address
(
redis_context
*
ctx
,
const
redis_address
addr
);
int
redis_context_connect_in
(
redis_context
*
,
struct
sockaddr_in
a
ddr
);
int
redis_context_connect_in
(
redis_context
*
ctx
,
struct
sockaddr_in
s
a
);
int
redis_context_connect_in6
(
redis_context
*
,
struct
sockaddr_in6
a
ddr
);
int
redis_context_connect_in6
(
redis_context
*
ctx
,
struct
sockaddr_in6
s
a
);
int
redis_context_connect_un
(
redis_context
*
,
struct
sockaddr_un
a
ddr
);
int
redis_context_connect_un
(
redis_context
*
ctx
,
struct
sockaddr_un
s
a
);
int
redis_context_connect_gai
(
redis_context
*
,
const
char
*
addr
,
int
port
);
int
redis_context_connect_gai
(
redis_context
*
ctx
,
const
char
*
addr
,
int
port
);
int
redis_context_flush
(
redis_context
*
ctx
);
int
redis_context_flush
(
redis_context
*
ctx
);
int
redis_context_read
(
redis_context
*
ctx
,
redis_protocol
**
reply
);
int
redis_context_read
(
redis_context
*
ctx
,
redis_protocol
**
reply
);
...
...
handle.h
View file @
4757c6d1
...
@@ -25,25 +25,25 @@ struct redis_handle_s {
...
@@ -25,25 +25,25 @@ struct redis_handle_s {
};
};
int
redis_handle_init
(
redis_handle
*
h
);
int
redis_handle_init
(
redis_handle
*
h
);
int
redis_handle_close
(
redis_handle
*
);
int
redis_handle_close
(
redis_handle
*
h
);
int
redis_handle_destroy
(
redis_handle
*
);
int
redis_handle_destroy
(
redis_handle
*
h
);
int
redis_handle_set_timeout
(
redis_handle
*
,
unsigned
long
us
);
int
redis_handle_set_timeout
(
redis_handle
*
h
,
unsigned
long
us
);
unsigned
long
redis_handle_get_timeout
(
redis_handle
*
h
);
unsigned
long
redis_handle_get_timeout
(
redis_handle
*
h
);
int
redis_handle_connect_address
(
redis_handle
*
,
const
redis_address
addr
);
int
redis_handle_connect_address
(
redis_handle
*
h
,
const
redis_address
addr
);
int
redis_handle_connect_in
(
redis_handle
*
,
struct
sockaddr_in
a
ddr
);
int
redis_handle_connect_in
(
redis_handle
*
h
,
struct
sockaddr_in
s
a
);
int
redis_handle_connect_in6
(
redis_handle
*
,
struct
sockaddr_in6
a
ddr
);
int
redis_handle_connect_in6
(
redis_handle
*
h
,
struct
sockaddr_in6
s
a
);
int
redis_handle_connect_un
(
redis_handle
*
,
struct
sockaddr_un
a
ddr
);
int
redis_handle_connect_un
(
redis_handle
*
h
,
struct
sockaddr_un
s
a
);
int
redis_handle_connect_gai
(
redis_handle
*
h
,
int
family
,
const
char
*
host
,
int
port
,
redis_address
*
addr
);
int
redis_handle_connect_gai
(
redis_handle
*
h
,
int
family
,
const
char
*
host
,
int
port
,
redis_address
*
addr
);
int
redis_handle_wait_connected
(
redis_handle
*
);
int
redis_handle_wait_connected
(
redis_handle
*
h
);
int
redis_handle_wait_readable
(
redis_handle
*
);
int
redis_handle_wait_readable
(
redis_handle
*
h
);
int
redis_handle_wait_writable
(
redis_handle
*
);
int
redis_handle_wait_writable
(
redis_handle
*
h
);
int
redis_handle_write_from_buffer
(
redis_handle
*
,
int
*
drained
);
int
redis_handle_write_from_buffer
(
redis_handle
*
h
,
int
*
drained
);
int
redis_handle_write_to_buffer
(
redis_handle
*
,
const
char
*
buf
,
size_t
len
);
int
redis_handle_write_to_buffer
(
redis_handle
*
h
,
const
char
*
buf
,
size_t
len
);
int
redis_handle_read_to_buffer
(
redis_handle
*
);
int
redis_handle_read_to_buffer
(
redis_handle
*
h
);
int
redis_handle_read_from_buffer
(
redis_handle
*
,
redis_protocol
**
p
);
int
redis_handle_read_from_buffer
(
redis_handle
*
h
,
redis_protocol
**
p
);
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment