initial import
[ps3/otheros-utils/boot_ps2.git] / source / main.c
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; version 2 of the License.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15  */
17 #include <stdio.h>
18 #include <string.h>
19 #include <unistd.h>
21 #include <psl1ght/lv2/net.h>
23 #include <lv2_syscall.h>
24 #include <udp_printf.h>
26 /*
27  * main
28  */
29 int main(int argc, char **argv)
30 {
31         int result;
33         netInitialize();
35         udp_printf_init();
37         PRINTF("%s:%d: start\n", __func__, __LINE__);
39         result = lv2_sm_shutdown(0x8202, NULL, 0);
40         if (result) {
41                 PRINTF("%s:%d: lv2_sm_shutdown failed (0x%08x)\n", __func__, __LINE__, result);
42                 goto done;
43         }
45         PRINTF("%s:%d: end\n", __func__, __LINE__);
47 done:
49         udp_printf_deinit();
51         netDeinitialize();
53         return 0;
54 }

Gitbrew Home :: Gitweb :: Releases :: Gitbrew Wiki :: Forums
git.gitbrew.org