From 0d8349bd33025294b1d6f5dddb086dd3b2d9bb97 Mon Sep 17 00:00:00 2001 From: Robert Staudinger Date: Mon, 31 Aug 2009 15:04:45 +0200 Subject: [padding] Deprecate struct fields. --- ccss/Makefile.am | 1 + ccss/ccss-padding.c | 33 +++++++++++++++++++++++++++++++++ ccss/ccss-padding.h | 7 +++++-- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 ccss/ccss-padding.c diff --git a/ccss/Makefile.am b/ccss/Makefile.am index 4f9b5a4..dd1ef42 100644 --- a/ccss/Makefile.am +++ b/ccss/Makefile.am @@ -41,6 +41,7 @@ libccss_1_la_SOURCES = \ ccss-grammar-priv.h \ ccss-node.c \ ccss-node-priv.h \ + ccss-padding.c \ ccss-padding-parser.c \ ccss-padding-parser.h \ ccss-position.c \ diff --git a/ccss/ccss-padding.c b/ccss/ccss-padding.c new file mode 100644 index 0000000..d4468eb --- /dev/null +++ b/ccss/ccss-padding.c @@ -0,0 +1,33 @@ +/* vim: set ts=8 sw=8 noexpandtab: */ + +/* The `C' CSS Library. + * Copyright (C) 2009 Intel Corporation. + * + * 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 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, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#include +#include "ccss-padding.h" +#include "config.h" + +double +ccss_padding_get_padding (ccss_padding_t const *self) +{ + g_return_val_if_fail (self, 0); + + return self->padding; +} + diff --git a/ccss/ccss-padding.h b/ccss/ccss-padding.h index db89cc7..55d6d46 100644 --- a/ccss/ccss-padding.h +++ b/ccss/ccss-padding.h @@ -28,11 +28,14 @@ CCSS_BEGIN_DECLS typedef struct { - ccss_property_t base; + CCSS_DEPRECATED (ccss_property_t base); - double padding; + CCSS_DEPRECATED (double padding); } ccss_padding_t; +double +ccss_padding_get_padding (ccss_padding_t const *self); + CCSS_END_DECLS #endif /* CCSS_PADDING_H */ -- cgit v1.2.3