Last change
on this file since 134 was
134,
checked in by (none), 14 years ago
|
gdm sources with the modifications for webcam
|
File size:
1.4 KB
|
Rev | Line | |
---|
[134] | 1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- |
---|
| 2 | * |
---|
| 3 | * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu> |
---|
| 4 | * |
---|
| 5 | * This program is free software; you can redistribute it and/or |
---|
| 6 | * modify it under the terms of the GNU General Public License as |
---|
| 7 | * published by the Free Software Foundation; either version 2 of the |
---|
| 8 | * License, or (at your option) any later version. |
---|
| 9 | * |
---|
| 10 | * This program is distributed in the hope that it will be useful, but |
---|
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 13 | * General Public License for more details. |
---|
| 14 | * |
---|
| 15 | * You should have received a copy of the GNU General Public License |
---|
| 16 | * along with this program; if not, write to the Free Software |
---|
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
| 18 | * 02111-1307, USA. |
---|
| 19 | * |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | #include "config.h" |
---|
| 23 | |
---|
| 24 | #include <stdlib.h> |
---|
| 25 | #include <stdio.h> |
---|
| 26 | #include <sys/types.h> |
---|
| 27 | #include <pwd.h> |
---|
| 28 | #include <string.h> |
---|
| 29 | #include <errno.h> |
---|
| 30 | |
---|
| 31 | #include <locale.h> |
---|
| 32 | |
---|
| 33 | #include <glib.h> |
---|
| 34 | |
---|
| 35 | #include "gdm-common.h" |
---|
| 36 | #include "gdm-log.h" |
---|
| 37 | |
---|
| 38 | static void |
---|
| 39 | test_log (void) |
---|
| 40 | { |
---|
| 41 | gdm_log_init (); |
---|
| 42 | |
---|
| 43 | g_debug ("Test debug 1"); |
---|
| 44 | gdm_log_set_debug (TRUE); |
---|
| 45 | g_debug ("Test debug 2"); |
---|
| 46 | |
---|
| 47 | g_message ("Test message"); |
---|
| 48 | g_warning ("Test warning"); |
---|
| 49 | g_critical ("Test critical"); |
---|
| 50 | g_error ("Test error"); |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | int |
---|
| 54 | main (int argc, char **argv) |
---|
| 55 | { |
---|
| 56 | |
---|
| 57 | test_log (); |
---|
| 58 | |
---|
| 59 | return 0; |
---|
| 60 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.