updater.cpp File Reference

Windows auto-updater. More...

#include "linden_common.h"
#include <windows.h>
#include <wininet.h>

Include dependency graph for updater.cpp:

Go to the source code of this file.

Defines

#define BUFSIZE   8192
#define win_class_name   L"FullScreen"

Functions

char * wchars_to_utf8chars (WCHAR *in_chars)
int WINAPI get_url_into_file (WCHAR *uri, char *path, int *cancelled)
LRESULT CALLBACK WinProc (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
int parse_args (int argc, char **argv)
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)

Variables

int gTotalBytesRead = 0
HWND gWindow = NULL
WCHAR gProgress [256]
char * gUpdateURL
char * gProgramName
char * gProductName
bool gIsSilent


Detailed Description

Windows auto-updater.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file updater.cpp.


Define Documentation

#define BUFSIZE   8192

Definition at line 41 of file updater.cpp.

Referenced by get_url_into_file(), LLVolumeParams::importFile(), LLPathParams::importFile(), LLProfileParams::importFile(), LLPermissions::importFile(), LLVolumeParams::importLegacyStream(), LLPathParams::importLegacyStream(), LLProfileParams::importLegacyStream(), LLPermissions::importLegacyStream(), LLXMLNode::parseStream(), and send_crash_report().

#define win_class_name   L"FullScreen"

Definition at line 266 of file updater.cpp.

Referenced by WinMain().


Function Documentation

int WINAPI get_url_into_file ( WCHAR *  uri,
char *  path,
int *  cancelled 
)

Definition at line 81 of file updater.cpp.

References BUFSIZE, FALSE, gProgress, gTotalBytesRead, gWindow, NULL, TRUE, and wchars_to_utf8chars().

Referenced by WinMain().

int parse_args ( int  argc,
char **  argv 
)

Definition at line 268 of file updater.cpp.

References gIsSilent, gProductName, gProgramName, gUpdateURL, and j.

char* wchars_to_utf8chars ( WCHAR *  in_chars  ) 

Definition at line 55 of file updater.cpp.

References i.

Referenced by get_url_into_file().

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nShowCmd 
)

Definition at line 301 of file updater.cpp.

References get_url_into_file(), gIsSilent, gProductName, gProgramName, gProgress, gTotalBytesRead, gUpdateURL, gWindow, NULL, params, parse_args(), win_class_name, and WinProc().

LRESULT CALLBACK WinProc ( HWND  hwnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 237 of file updater.cpp.

References gProgress.

Referenced by WinMain().


Variable Documentation

bool gIsSilent

Definition at line 49 of file updater.cpp.

Referenced by parse_args(), and WinMain().

char* gProductName

Definition at line 48 of file updater.cpp.

char* gProgramName

Definition at line 47 of file updater.cpp.

Referenced by parse_args(), and WinMain().

WCHAR gProgress[256]

Definition at line 45 of file updater.cpp.

Referenced by get_url_into_file(), WinMain(), and WinProc().

int gTotalBytesRead = 0

Definition at line 43 of file updater.cpp.

Referenced by get_url_into_file(), and WinMain().

char* gUpdateURL

Definition at line 46 of file updater.cpp.

HWND gWindow = NULL

Definition at line 44 of file updater.cpp.


Generated on Thu Jul 1 06:11:02 2010 for Second Life Viewer by  doxygen 1.4.7