shumate/shumate-coordinate.h
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /* | ||
| 2 | * Copyright (C) 2011-2013 Jiri Techet <techet@gmail.com> | ||
| 3 | * Copyright (C) 2019 Marcus Lundblad <ml@update.uu.se> | ||
| 4 | * | ||
| 5 | * This library is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU Lesser General Public | ||
| 7 | * License as published by the Free Software Foundation; either | ||
| 8 | * version 2.1 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This library is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * Lesser General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU Lesser General Public | ||
| 16 | * License along with this library; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | #if !defined (__SHUMATE_SHUMATE_H_INSIDE__) && !defined (SHUMATE_COMPILATION) | ||
| 21 | #error "Only <shumate/shumate.h> can be included directly." | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #ifndef SHUMATE_COORDINATE_H | ||
| 25 | #define SHUMATE_COORDINATE_H | ||
| 26 | |||
| 27 | #include <shumate/shumate-location.h> | ||
| 28 | |||
| 29 | #include <glib-object.h> | ||
| 30 | |||
| 31 | G_BEGIN_DECLS | ||
| 32 | |||
| 33 | #define SHUMATE_TYPE_COORDINATE shumate_coordinate_get_type () | ||
| 34 |
3/6✓ Branch 3 → 4 taken 48 times.
✗ Branch 3 → 7 not taken.
✓ Branch 4 → 5 taken 48 times.
✗ Branch 4 → 6 not taken.
✗ Branch 5 → 6 not taken.
✓ Branch 5 → 7 taken 48 times.
|
48 | G_DECLARE_DERIVABLE_TYPE (ShumateCoordinate, shumate_coordinate, SHUMATE, COORDINATE, GInitiallyUnowned) |
| 35 | |||
| 36 | struct _ShumateCoordinateClass | ||
| 37 | { | ||
| 38 | GInitiallyUnownedClass parent_class; | ||
| 39 | |||
| 40 | /*< private >*/ | ||
| 41 | gpointer padding[16]; | ||
| 42 | }; | ||
| 43 | |||
| 44 | ShumateCoordinate *shumate_coordinate_new (void); | ||
| 45 | |||
| 46 | ShumateCoordinate *shumate_coordinate_new_full (double latitude, | ||
| 47 | double longitude); | ||
| 48 | |||
| 49 | G_END_DECLS | ||
| 50 | |||
| 51 | #endif | ||
| 52 |