equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 /*** block from ../../../docs/manual/basics-init.xml ***/ |
|
19 |
|
20 #define LOG_FILE "c:\\logs\\init_logs.txt" |
|
21 |
|
22 #include <gst/gst_global.h> |
|
23 #include "std_log_result.h" |
|
24 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
|
25 |
|
26 void create_xml(int result) |
|
27 { |
|
28 if(result) |
|
29 assert_failed = 1; |
|
30 |
|
31 testResultXml(xmlfile); |
|
32 close_log_file(); |
|
33 } |
|
34 |
|
35 |
|
36 #include <gst/gst.h> |
|
37 #include <stdio.h> |
|
38 int |
|
39 main (int argc, |
|
40 char *argv[]) |
|
41 { |
|
42 const gchar *nano_str; |
|
43 guint major, minor, micro, nano; |
|
44 |
|
45 gst_init (&argc, &argv); |
|
46 |
|
47 xmlfile = "init"; |
|
48 std_log(LOG_FILENAME_LINE, "Test Started init"); |
|
49 |
|
50 |
|
51 gst_version (&major, &minor, µ, &nano); |
|
52 |
|
53 if (nano == 1) |
|
54 nano_str = "(CVS)"; |
|
55 else if (nano == 2) |
|
56 nano_str = "(Prerelease)"; |
|
57 else |
|
58 nano_str = ""; |
|
59 |
|
60 getchar(); |
|
61 std_log(LOG_FILENAME_LINE, "Test Successful"); |
|
62 create_xml(0); |
|
63 |
|
64 return 0; |
|
65 } |