mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
use bjoern's naming suggestion
This commit is contained in:
@@ -589,7 +589,7 @@ int dc_is_configured (const dc_context_t* context);
|
||||
* @param context The context object as created by dc_context_new().
|
||||
* @return None
|
||||
*/
|
||||
void dc_io_start (dc_context_t* context);
|
||||
void dc_start_io (dc_context_t* context);
|
||||
|
||||
/**
|
||||
* Check if IO (SMTP/IMAP/Jobs) has been started.
|
||||
@@ -599,7 +599,7 @@ void dc_io_start (dc_context_t* context);
|
||||
* @return 1=IO is running;
|
||||
* 0=IO is not running.
|
||||
*/
|
||||
int dc_io_status(const dc_context_t* context);
|
||||
int dc_is_io_running(const dc_context_t* context);
|
||||
|
||||
/**
|
||||
* Stop job and IMAP/SMTP tasks and return when they are finished.
|
||||
@@ -608,7 +608,7 @@ int dc_io_status(const dc_context_t* context);
|
||||
* @param context The context object as created by dc_context_new().
|
||||
* @return None
|
||||
*/
|
||||
void dc_io_stop(dc_context_t* context);
|
||||
void dc_stop_io(dc_context_t* context);
|
||||
|
||||
/**
|
||||
* This function can be called whenever there is a hint
|
||||
|
||||
@@ -481,7 +481,7 @@ pub unsafe extern "C" fn dc_is_configured(context: *mut dc_context_t) -> libc::c
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_io_start(context: *mut dc_context_t) {
|
||||
pub unsafe extern "C" fn dc_start_io(context: *mut dc_context_t) {
|
||||
if context.is_null() {
|
||||
return;
|
||||
}
|
||||
@@ -491,7 +491,7 @@ pub unsafe extern "C" fn dc_io_start(context: *mut dc_context_t) {
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_io_status(context: *mut dc_context_t) -> libc::c_int {
|
||||
pub unsafe extern "C" fn dc_is_io_running(context: *mut dc_context_t) -> libc::c_int {
|
||||
if context.is_null() {
|
||||
return 0;
|
||||
}
|
||||
@@ -665,7 +665,7 @@ pub unsafe extern "C" fn dc_get_next_event(context: *mut dc_context_t) -> *mut d
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn dc_io_stop(context: *mut dc_context_t) {
|
||||
pub unsafe extern "C" fn dc_stop_io(context: *mut dc_context_t) {
|
||||
if context.is_null() {
|
||||
eprintln!("ignoring careless call to dc_shutdown()");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user