1// -*- C++ -*-
2/*
3  Copyright (c) 1990-2000 Info-ZIP.  All rights reserved.
4
5  See the accompanying file LICENSE, version 2000-Apr-09 or later
6  (the contents of which are also included in unzip.h) for terms of use.
7  If, for some reason, all these files are missing, the Info-ZIP license
8  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
9*/
10//
11// WARNING: This is C++, not C!  GNU C is not supported here!
12//
13// beos_init.cpp
14//
15// BeOS-specific C++ routines for use with Info-ZIP's UnZip 5.30 or later.
16//
17// This is necessary because we need to have an app_server connection to be
18// able to ask the system to assign a MIME type to an un-typed file.  Strange
19// but true (the update_mime_info() call needs to send/receive messages).
20//
21// If you're writing your own Zip application, you probably DO NOT want to
22// include this file!
23
24#include <app/Application.h>
25
26#ifdef SFX
27const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZipSFX";
28#else
29const static char *unzip_signature = "application/x-vnd.Info-ZIP.UnZip";
30#endif
31
32extern "C" int main_stub( int argc, char *argv[] );
33
34int main( int argc, char **argv )
35{
36    BApplication app( unzip_signature );
37
38	return main_stub( argc, argv );
39}
40