mac_crash_logger.cpp File Reference

Mac OSX crash logger implementation. More...

#include "linden_common.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <curl/curl.h>
#include "llerror.h"
#include "lltimer.h"
#include "lldir.h"
#include "llstring.h"
#include <Carbon/Carbon.h>

Include dependency graph for mac_crash_logger.cpp:

Go to the source code of this file.

Classes

class  LLFileEncoder

Functions

LLString encode_string (const char *formname, const LLString &str)
size_t curl_download_callback (void *data, size_t size, size_t nmemb, void *user_data)
OSStatus dialogHandler (EventHandlerCallRef handler, EventRef event, void *userdata)
int main (int argc, char **argv)

Variables

LLString gServerResponse
BOOL gSendReport = FALSE
LLString gUserserver
LLString gUserText
WindowRef gWindow = NULL
EventHandlerRef gEventHandler = NULL
BOOL gCrashInPreviousExec = FALSE
time_t gLaunchTime


Detailed Description

Mac OSX crash logger implementation.

LicenseInfo
firstyear=2003&license=viewergpl

Copyright (c) 2003-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 mac_crash_logger.cpp.


Function Documentation

size_t curl_download_callback ( void data,
size_t  size,
size_t  nmemb,
void user_data 
)

Definition at line 73 of file mac_crash_logger.cpp.

References gServerResponse, i, and S32.

OSStatus dialogHandler ( EventHandlerCallRef  handler,
EventRef  event,
void userdata 
)

Definition at line 85 of file mac_crash_logger.cpp.

References gSendReport, gUserText, gWindow, llendl, llinfos, NULL, size, and TRUE.

Referenced by main().

LLString encode_string ( const char *  formname,
const LLString str 
)

int main ( int  argc,
char **  argv 
)

Definition at line 144 of file mac_crash_logger.cpp.

References curl_download_callback(), dialogHandler(), encode_string(), LLFileEncoder::encodeURL(), gCrashInPreviousExec, gDirUtilp, LLDir::getExpandedFilename(), gEventHandler, gLaunchTime, gSendReport, gServerResponse, gUserserver, gUserText, gWindow, i, LLDir::initAppDirs(), LLFileEncoder::isValid(), LL_MAX_PATH, LL_PATH_LOGS, LL_PATH_USER_SETTINGS, llendl, llinfos, llwarns, MAX_STRING, LLFileEncoder::mBuf, NULL, params, S32, and TRUE.


Variable Documentation

BOOL gCrashInPreviousExec = FALSE

Definition at line 70 of file mac_crash_logger.cpp.

EventHandlerRef gEventHandler = NULL

Definition at line 69 of file mac_crash_logger.cpp.

Referenced by main().

time_t gLaunchTime

Definition at line 71 of file mac_crash_logger.cpp.

BOOL gSendReport = FALSE

Definition at line 65 of file mac_crash_logger.cpp.

LLString gServerResponse

Definition at line 64 of file mac_crash_logger.cpp.

LLString gUserserver

Definition at line 66 of file mac_crash_logger.cpp.

LLString gUserText

Definition at line 67 of file mac_crash_logger.cpp.

WindowRef gWindow = NULL

Definition at line 68 of file mac_crash_logger.cpp.

Referenced by dialogHandler(), get_url_into_file(), main(), sendDone(), sendProgress(), setProgress(), setProgressText(), and WinMain().


Generated on Thu Jul 1 06:10:53 2010 for Second Life Viewer by  doxygen 1.4.7