Example #1
0
void wi_socket_register(void) {
#ifdef HAVE_OPENSSL_SSL_H
	_wi_socket_tls_runtime_id = wi_runtime_register_class(&_wi_socket_tls_runtime_class);
#endif
	
	_wi_socket_runtime_id = wi_runtime_register_class(&_wi_socket_runtime_class);
}
Example #2
0
void wi_string_register(void) {
	_wi_string_runtime_id = wi_runtime_register_class(&_wi_string_runtime_class);
	
#ifdef WI_ICONV
	_wi_string_encoding_runtime_id = wi_runtime_register_class(&_wi_string_encoding_runtime_class);
#endif
}
Example #3
0
void wd_chats_init(void) {
	wd_chat_runtime_id = wi_runtime_register_class(&wd_chat_runtime_class);
	wd_topic_runtime_id = wi_runtime_register_class(&wd_topic_runtime_class);

	wd_chats = wi_dictionary_init(wi_mutable_dictionary_alloc());

	wd_public_chat = wd_chat_init_public_chat(wd_chat_alloc());
	wd_chats_add_chat(wd_public_chat);
}
Example #4
0
void wd_chats_init(void) {
	wd_chat_runtime_id = wi_runtime_register_class(&wd_chat_runtime_class);
	wd_topic_runtime_id = wi_runtime_register_class(&wd_topic_runtime_class);

	wd_chats = wi_hash_init(wi_hash_alloc());

	wd_public_chat = wd_chat_init_public_chat(wd_chat_alloc());
	wd_chats_add_chat(wd_public_chat);
}
Example #5
0
void wd_users_initialize(void) {
	wd_user_runtime_id = wi_runtime_register_class(&wd_user_runtime_class);
	wd_client_info_runtime_id = wi_runtime_register_class(&wd_client_info_runtime_class);

	wd_users = wi_dictionary_init(wi_mutable_dictionary_alloc());
	
	wd_users_id_lock = wi_lock_init(wi_lock_alloc());
		
	wd_users_timer = wi_timer_init_with_function(wi_timer_alloc(),
												 wd_users_update_idle,
												 WD_USERS_TIMER_INTERVAL,
												 true);
}
Example #6
0
void wd_transfers_init(void) {
	wd_transfer_runtime_id = wi_runtime_register_class(&wd_transfer_runtime_class);

	wd_transfers = wi_array_init(wi_mutable_array_alloc());

	wd_transfers_update_queue_lock = wi_lock_init(wi_lock_alloc());
}
Example #7
0
void wr_transfers_init(void) {
	wr_transfer_runtime_id = wi_runtime_register_class(&wr_transfer_runtime_class);
    
	wr_transfers = wi_array_init(wi_mutable_array_alloc());
    
	wr_transfers_set_download_path(WI_STR("~"));
}
Example #8
0
void wd_init_transfers(void) {
	wd_transfer_runtime_id = wi_runtime_register_class(&wd_transfer_runtime_class);

	wd_transfers = wi_list_init(wi_list_alloc());

	wd_transfers_timer = wi_timer_init_with_function(wi_timer_alloc(),
													 wd_update_transfers,
													 WD_TRANSFERS_TIMER_INTERVAL,
													 true);
}
Example #9
0
void wr_init_windows(void) {
	wr_window_runtime_id = wi_runtime_register_class(&wr_window_runtime_class);

	wr_windows = wi_list_init(wi_list_alloc());

	wr_console_window = wr_window_init_with_chat(wr_window_alloc(), WR_PUBLIC_CID);
	wr_windows_add_window(wr_console_window);
	wi_release(wr_console_window);

	wr_windows_show_window(wr_console_window);
}
Example #10
0
void wd_users_init(void) {
	wd_user_runtime_id = wi_runtime_register_class(&wd_user_runtime_class);

	wd_users = wi_hash_init(wi_hash_alloc());
	
	wd_users_uid_lock = wi_lock_init(wi_lock_alloc());
		
	wd_users_timer = wi_timer_init_with_function(wi_timer_alloc(),
												 wd_users_update_idle,
												 WD_USERS_TIMER_INTERVAL,
												 true);
}
Example #11
0
void wt_init_servers(void) {
	wt_server_runtime_id = wi_runtime_register_class(&wt_server_runtime_class);

	wt_servers = wi_list_init(wi_list_alloc());
	
	wt_servers_lock = wi_lock_init(wi_lock_alloc());

	wt_servers_timer = wi_timer_init_with_function(wi_timer_alloc(),
												   wt_update_servers,
												   WT_SERVERS_UPDATE_INTERVAL,
												   true);
}
Example #12
0
void wr_windows_initialize(void) {
	wr_window_runtime_id = wi_runtime_register_class(&wr_window_runtime_class);

	wr_windows = wi_array_init(wi_mutable_array_alloc());

	wr_console_window = wr_window_init_with_chat(wr_window_alloc(), wr_public_chat);
	wr_windows_add_window(wr_console_window);

	wr_windows_show_window(wr_console_window);

	wr_windows_set_timestamp_format(WI_STR("%H:%M"));
}
Example #13
0
void wd_transfers_initialize(void) {
	wd_transfer_runtime_id = wi_runtime_register_class(&wd_transfer_runtime_class);

	wd_transfers = wi_array_init(wi_mutable_array_alloc());

	wd_transfers_status_lock = wi_lock_init(wi_lock_alloc());
	
	wd_transfers_user_downloads = wi_dictionary_init_with_capacity_and_callbacks(wi_mutable_dictionary_alloc(),
		0, wi_dictionary_default_key_callbacks, wi_dictionary_null_value_callbacks);

	wd_transfers_user_uploads = wi_dictionary_init_with_capacity_and_callbacks(wi_mutable_dictionary_alloc(),
		0, wi_dictionary_default_key_callbacks, wi_dictionary_null_value_callbacks);
	
	wd_transfers_queue_lock = wi_condition_lock_init_with_condition(wi_condition_lock_alloc(), 0);
}
Example #14
0
void wd_trackers_init(void) {
	wd_tracker_runtime_id = wi_runtime_register_class(&wd_tracker_runtime_class);

	wd_trackers = wi_array_init(wi_mutable_array_alloc());

	wd_trackers_register_timer =
		wi_timer_init_with_function(wi_timer_alloc(),
									wd_trackers_register_with_timer,
									WD_TRACKERS_REGISTER_INTERVAL,
									true);
	
	wd_trackers_update_timer =
		wi_timer_init_with_function(wi_timer_alloc(),
									wd_trackers_update_with_timer,
									WD_TRACKERS_UPDATE_INTERVAL,
									true);
}
Example #15
0
void wi_thread_register(void) {
	_wi_thread_runtime_id = wi_runtime_register_class(&_wi_thread_runtime_class);
}
Example #16
0
void wi_lock_register(void) {
	_wi_lock_runtime_id = wi_runtime_register_class(&_wi_lock_runtime_class);
	_wi_recursive_lock_runtime_id = wi_runtime_register_class(&_wi_recursive_lock_runtime_class);
	_wi_rwlock_runtime_id = wi_runtime_register_class(&_wi_rwlock_runtime_class);
	_wi_condition_lock_runtime_id = wi_runtime_register_class(&_wi_condition_lock_runtime_class);
}
Example #17
0
void wi_crypto_register(void) {
	_wi_rsa_runtime_id = wi_runtime_register_class(&_wi_rsa_runtime_class);
	_wi_cipher_runtime_id = wi_runtime_register_class(&_wi_cipher_runtime_class);
}
void wi_readwrite_lock_register(void) {
    _wi_readwrite_lock_runtime_id = wi_runtime_register_class(&_wi_readwrite_lock_runtime_class);
}
Example #19
0
void wi_x509_register(void) {
	_wi_x509_runtime_id = wi_runtime_register_class(&_wi_x509_runtime_class);
}
Example #20
0
void wi_config_register(void) {
	_wi_config_runtime_id = wi_runtime_register_class(&_wi_config_runtime_class);
}
Example #21
0
void wi_process_register(void) {
	_wi_process_runtime_id = wi_runtime_register_class(&_wi_process_runtime_class);
}
Example #22
0
void wi_settings_register(void) {
	_wi_settings_runtime_id = wi_runtime_register_class(&_wi_settings_runtime_class);
}
Example #23
0
void wi_terminal_register(void) {
	_wi_terminal_runtime_id = wi_runtime_register_class(&_wi_terminal_runtime_class);
	_wi_terminal_buffer_runtime_id = wi_runtime_register_class(&_wi_terminal_buffer_runtime_class);
}
Example #24
0
void wi_error_register(void) {
	_wi_error_runtime_id = wi_runtime_register_class(&_wi_error_runtime_class);
}
void wi_string_encoding_register(void) {
    _wi_string_encoding_runtime_id = wi_runtime_register_class(&_wi_string_encoding_runtime_class);
}
Example #26
0
void wr_servers_init(void) {
	wr_server_runtime_id = wi_runtime_register_class(&wr_server_runtime_class);
}
Example #27
0
void wi_p7_message_register(void) {
    _wi_p7_message_runtime_id = wi_runtime_register_class(&_wi_p7_message_runtime_class);
}
Example #28
0
void wi_runtime_register(void) {
	_wi_runtime_null_id = wi_runtime_register_class(&_wi_runtime_null_class);
}
Example #29
0
void wi_test_runtime_initialize(void) {
	_wi_runtimetest_runtime_id = wi_runtime_register_class(&_wi_runtimetest_runtime_class);
}
Example #30
0
void wi_dictionary_register(void) {
    _wi_dictionary_runtime_id = wi_runtime_register_class(&_wi_dictionary_runtime_class);
}