|
1 |
| -/* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
| 1 | +/* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. |
2 | 2 |
|
3 | 3 | This program is free software; you can redistribute it and/or modify
|
4 | 4 | it under the terms of the GNU General Public License, version 2.0,
|
@@ -50,38 +50,34 @@ mysql_service_status_t example_deinit() { return 0; }
|
50 | 50 |
|
51 | 51 | /* This component provides an implementation for all example Services. */
|
52 | 52 | BEGIN_SERVICE_IMPLEMENTATION(example_component1, greetings)
|
53 |
| -english_greeting_service_imp::say_hello, |
54 |
| - END_SERVICE_IMPLEMENTATION() |
55 |
| - |
56 |
| - BEGIN_SERVICE_IMPLEMENTATION(example_component1, greetings_localization) |
57 |
| - english_greeting_service_imp::get_language, |
58 |
| - END_SERVICE_IMPLEMENTATION() |
59 |
| - |
60 |
| - BEGIN_SERVICE_IMPLEMENTATION(example_component1, example_math) |
61 |
| - simple_example_math_imp::calculate_gcd, |
62 |
| - END_SERVICE_IMPLEMENTATION() |
63 |
| - |
64 |
| - BEGIN_COMPONENT_PROVIDES(example_component1) |
65 |
| - PROVIDES_SERVICE(example_component1, greetings) |
66 |
| - PROVIDES_SERVICE(example_component1, greetings_localization) |
67 |
| - PROVIDES_SERVICE(example_component1, example_math) |
68 |
| - END_COMPONENT_PROVIDES() |
69 |
| - |
70 |
| - /* An empty list of dependencies. */ |
71 |
| - BEGIN_COMPONENT_REQUIRES(example_component1) END_COMPONENT_REQUIRES() |
72 |
| - |
73 |
| - /* A list of metadata to describe the Component. */ |
74 |
| - BEGIN_COMPONENT_METADATA(example_component1) |
75 |
| - METADATA("mysql.author", "Oracle Corporation") |
76 |
| - METADATA("mysql.license", "GPL") METADATA("test_property", "1") |
77 |
| - END_COMPONENT_METADATA() |
78 |
| - |
79 |
| - /* Declaration of the Component. */ |
80 |
| - DECLARE_COMPONENT(example_component1, |
81 |
| - "mysql:example_component1") example_init, |
82 |
| - example_deinit END_DECLARE_COMPONENT() |
83 |
| - |
84 |
| - /* Defines list of Components contained in this library. Note that for now |
85 |
| - we assume that library will have exactly one Component. */ |
86 |
| - DECLARE_LIBRARY_COMPONENTS &COMPONENT_REF(example_component1) |
87 |
| - END_DECLARE_LIBRARY_COMPONENTS |
| 53 | +english_greeting_service_imp::say_hello, END_SERVICE_IMPLEMENTATION(); |
| 54 | + |
| 55 | +BEGIN_SERVICE_IMPLEMENTATION(example_component1, greetings_localization) |
| 56 | +english_greeting_service_imp::get_language, END_SERVICE_IMPLEMENTATION(); |
| 57 | + |
| 58 | +BEGIN_SERVICE_IMPLEMENTATION(example_component1, example_math) |
| 59 | +simple_example_math_imp::calculate_gcd, END_SERVICE_IMPLEMENTATION(); |
| 60 | + |
| 61 | +BEGIN_COMPONENT_PROVIDES(example_component1) |
| 62 | +PROVIDES_SERVICE(example_component1, greetings), |
| 63 | + PROVIDES_SERVICE(example_component1, greetings_localization), |
| 64 | + PROVIDES_SERVICE(example_component1, example_math), |
| 65 | + END_COMPONENT_PROVIDES(); |
| 66 | + |
| 67 | +/* An empty list of dependencies. */ |
| 68 | +BEGIN_COMPONENT_REQUIRES(example_component1) END_COMPONENT_REQUIRES(); |
| 69 | + |
| 70 | +/* A list of metadata to describe the Component. */ |
| 71 | +BEGIN_COMPONENT_METADATA(example_component1) |
| 72 | +METADATA("mysql.author", "Oracle Corporation"), |
| 73 | + METADATA("mysql.license", "GPL"), METADATA("test_property", "1"), |
| 74 | + END_COMPONENT_METADATA(); |
| 75 | + |
| 76 | +/* Declaration of the Component. */ |
| 77 | +DECLARE_COMPONENT(example_component1, "mysql:example_component1") |
| 78 | +example_init, example_deinit END_DECLARE_COMPONENT(); |
| 79 | + |
| 80 | +/* Defines list of Components contained in this library. Note that for now |
| 81 | + we assume that library will have exactly one Component. */ |
| 82 | +DECLARE_LIBRARY_COMPONENTS &COMPONENT_REF(example_component1) |
| 83 | + END_DECLARE_LIBRARY_COMPONENTS |
0 commit comments