mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-24 22:12:16 +02:00 
			
		
		
		
	`@filename@` expands to the (absolute or relative) path from the build directory to the source directory, which can be rather verbose. In practice Meson usually (always?) generates a relative path, but even so, the resulting installed header is not necessarily reproducible if using different build directories outside the source directory. We don't really need a full path here anyway: the basename is enough of a hint to point a reader towards the file where the underlying enum was defined. Signed-off-by: Simon McVittie <smcv@collabora.com>
		
			
				
	
	
		
			64 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			64 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /*** BEGIN file-header ***/
 | |
| /*
 | |
|  * Copyright © 2007 Red Hat, Inc.
 | |
|  *
 | |
|  * SPDX-License-Identifier: LGPL-2.1-or-later
 | |
|  *
 | |
|  * This library is free software; you can redistribute it and/or
 | |
|  * modify it under the terms of the GNU Lesser General Public
 | |
|  * License as published by the Free Software Foundation; either
 | |
|  * version 2.1 of the License, or (at your option) any later version.
 | |
|  *
 | |
|  * This library is distributed in the hope that it will be useful,
 | |
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 | |
|  * Lesser General Public License for more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU Lesser General
 | |
|  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
 | |
|  *
 | |
|  * Authors: Matthias Clasen <mclasen@redhat.com>
 | |
|  */
 | |
| 
 | |
| #ifndef GLIB_DISABLE_DEPRECATION_WARNINGS
 | |
| #define GLIB_DISABLE_DEPRECATION_WARNINGS
 | |
| #endif
 | |
| 
 | |
| #include "config.h"
 | |
| #include "gioenumtypes.h"
 | |
| #include <gio.h>
 | |
| 
 | |
| /*** END file-header ***/
 | |
| 
 | |
| /*** BEGIN file-production ***/
 | |
| /* enumerations from "@basename@" */
 | |
| /*** END file-production ***/
 | |
| 
 | |
| /*** BEGIN value-header ***/
 | |
| GType
 | |
| @enum_name@_get_type (void)
 | |
| {
 | |
|   static GType static_g_define_type_id = 0;
 | |
| 
 | |
|   if (g_once_init_enter_pointer (&static_g_define_type_id))
 | |
|     {
 | |
|       static const G@Type@Value values[] = {
 | |
| /*** END value-header ***/
 | |
| 
 | |
| /*** BEGIN value-production ***/
 | |
|         { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
 | |
| /*** END value-production ***/
 | |
| 
 | |
| /*** BEGIN value-tail ***/
 | |
|         { 0, NULL, NULL }
 | |
|       };
 | |
|       GType g_define_type_id =
 | |
|         g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
 | |
|       g_once_init_leave_pointer (&static_g_define_type_id, g_define_type_id);
 | |
|     }
 | |
| 
 | |
|   return static_g_define_type_id;
 | |
| }
 | |
| 
 | |
| /*** END value-tail ***/
 |