mirror of https://github.com/BOINC/boinc.git
parent
6db218ed2c
commit
8233433f6c
|
@ -19,16 +19,12 @@
|
|||
|
||||
// command-line version of the BOINC core client
|
||||
|
||||
#include "boinc_api.h"
|
||||
// This file contains no GUI-related code,
|
||||
// and is not included in the source code for Mac or Win GUI clients
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "win/wingui.h"
|
||||
#endif
|
||||
|
||||
#include "boinc_api.h"
|
||||
#include "account.h"
|
||||
#include "client_state.h"
|
||||
#include "error_numbers.h"
|
||||
|
@ -48,18 +44,6 @@ void show_message(char* message, char* priority) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
int get_initial_project() {
|
||||
CLoginDialog dlg(IDD_LOGIN);
|
||||
int retval = dlg.DoModal();
|
||||
if (retval != IDOK) return -1;
|
||||
write_account_file(dlg.m_url.GetBuffer(0), dlg.m_auth.GetBuffer(0));
|
||||
return 0;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
// Prompt user for project URL and authenticator,
|
||||
// and create an account file
|
||||
// TODO: use better input method here, backspace doesn't always seem to work
|
||||
|
@ -85,8 +69,6 @@ int get_initial_project() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE_CC__
|
||||
#include "mac_main.h"
|
||||
int main() {
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
// Contributor(s):
|
||||
//
|
||||
|
||||
// Main program for the Windows command-line client
|
||||
|
||||
#include <afxwin.h>
|
||||
|
||||
#include "win_net.h"
|
||||
|
|
|
@ -7,6 +7,22 @@
|
|||
CMainWindow* myWnd;
|
||||
CMyApp myApp;
|
||||
|
||||
void show_message(char* message, char* priority) {
|
||||
if (!strcmp(priority, "high")) {
|
||||
fprintf(stderr, "BOINC core client: %s (priority: %s)\n", message, priority);
|
||||
} else {
|
||||
printf("BOINC core client: %s (priority: %s)\n", message, priority);
|
||||
}
|
||||
}
|
||||
|
||||
int get_initial_project() {
|
||||
CLoginDialog dlg(IDD_LOGIN);
|
||||
int retval = dlg.DoModal();
|
||||
if (retval != IDOK) return -1;
|
||||
write_account_file(dlg.m_url.GetBuffer(0), dlg.m_auth.GetBuffer(0));
|
||||
return 0;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// CProgressHeaderCtrl message map and member functions
|
||||
|
||||
|
|
Loading…
Reference in New Issue