renaming dc_configure to configure

and renaming the autoconfigure modules
This commit is contained in:
Simon Laux
2019-08-18 21:21:43 +02:00
parent e3b2a7a69b
commit 491826556b
13 changed files with 21 additions and 21 deletions

View File

@@ -11,10 +11,10 @@ use crate::oauth2::*;
use crate::param::Params;
use crate::types::*;
mod auto_outlk;
use auto_outlk::outlk_autodiscover;
mod auto_moz;
use auto_moz::moz_autoconfigure;
mod auto_outlook;
use auto_outlook::outlk_autodiscover;
mod auto_mozilla;
use auto_mozilla::moz_autoconfigure;
macro_rules! progress {
($context:tt, $progress:expr) => {
@@ -31,7 +31,7 @@ macro_rules! progress {
}
// connect
pub unsafe fn dc_configure(context: &Context) {
pub unsafe fn configure(context: &Context) {
if 0 != dc_has_ongoing(context) {
warn!(
context,

View File

@@ -128,7 +128,7 @@ pub const DC_CREATE_MVBOX: usize = 1;
// via dc_set_config() using the key "server_flags".
/// Force OAuth2 authorization. This flag does not skip automatic configuration.
/// Before calling dc_configure() with DC_LP_AUTH_OAUTH2 set,
/// Before calling configure() with DC_LP_AUTH_OAUTH2 set,
/// the user has to confirm access at the URL returned by dc_get_oauth2_url().
pub const DC_LP_AUTH_OAUTH2: usize = 0x2;
@@ -282,7 +282,7 @@ pub enum Event {
/// As most things are asynchronous, things may go wrong at any time and the user
/// should not be disturbed by a dialog or so. Instead, use a bubble or so.
///
/// However, for ongoing processes (eg. dc_configure())
/// However, for ongoing processes (eg. configure())
/// or for functions that are expected to fail (eg. dc_continue_key_transfer())
/// it might be better to delay showing these events until the function has really
/// failed (returned false). It should be sufficient to report only the _last_ error
@@ -400,7 +400,7 @@ pub enum Event {
/// @return 0
LOCATION_CHANGED = 2035,
/// Inform about the configuration progress started by dc_configure().
/// Inform about the configuration progress started by configure().
///
/// @param data1 (int) 0=error, 1-999=progress in permille, 1000=success and done
/// @param data2 0

View File

@@ -10,7 +10,7 @@ use crate::chat;
use crate::config::Config;
use crate::constants::*;
use crate::context::Context;
use crate::dc_configure::*;
use crate::configure::*;
use crate::dc_e2ee::*;
use crate::dc_msg::*;
use crate::dc_tools::*;

View File

@@ -6,7 +6,7 @@ use crate::chat::{self, Chat};
use crate::constants::*;
use crate::contact::*;
use crate::context::Context;
use crate::dc_configure::*;
use crate::configure::*;
use crate::dc_e2ee::*;
use crate::dc_mimeparser::*;
use crate::dc_msg::*;

View File

@@ -8,7 +8,7 @@ use rand::{thread_rng, Rng};
use crate::chat;
use crate::constants::*;
use crate::context::Context;
use crate::dc_configure::*;
use crate::configure::*;
use crate::dc_imex::*;
use crate::dc_location::*;
use crate::dc_loginparam::*;

View File

@@ -1,7 +1,7 @@
use std::sync::{Arc, Condvar, Mutex};
use crate::context::Context;
use crate::dc_configure::*;
use crate::configure::*;
use crate::imap::Imap;
pub struct JobThread {

View File

@@ -26,6 +26,7 @@ mod aheader;
pub mod chat;
pub mod chatlist;
pub mod config;
pub mod configure;
pub mod constants;
pub mod contact;
pub mod context;
@@ -47,7 +48,6 @@ pub mod types;
pub mod x;
pub mod dc_array;
pub mod dc_configure;
mod dc_dehtml;
mod dc_e2ee;
pub mod dc_imex;