This file is indexed.

/usr/include/ccss-1/ccss/ccss-style.h is in libccss-dev 0.5.0-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
/* vim: set ts=8 sw=8 noexpandtab: */

/* The `C' CSS Library.
 * Copyright (C) 2008 Robert Staudinger
 *
 * 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.
 */

#ifndef CCSS_STYLE_H
#define CCSS_STYLE_H

#include <stdint.h>
#include <ccss/ccss-macros.h>
#include <ccss/ccss-property.h>

CCSS_BEGIN_DECLS

/**
 * ccss_style_t:
 *
 * Representation of a block of CSS statements.
 *
 * <emphasis>Memory management:</emphasis> Style objects are owned by the
 * stylesheet, and therefore not created or modified by the CCSS consumer.
 **/
typedef struct ccss_style_ ccss_style_t;

void
ccss_style_destroy	(ccss_style_t		*self);

uint32_t
ccss_style_hash		(ccss_style_t const     *self);

/* Somewhat hackish */
struct ccss_stylesheet_ *
ccss_style_get_stylesheet (ccss_style_t const	*self);

bool
ccss_style_get_double	(ccss_style_t const	*self,
			 char const		*property_name,
			 double			*value);

bool
ccss_style_get_string	(ccss_style_t const	 *self,
			 char const		 *property_name,
			 char			**value);

bool
ccss_style_get_property	(ccss_style_t const	 *self,
			 char const		 *property_name,
			 ccss_property_t const	**value);

void
ccss_style_set_property	(ccss_style_t 		*self,
			 char const		*property_name,
			 ccss_property_t const	*value);

bool
ccss_style_interpret_property (ccss_style_t const	 *self,
                               char const		 *property_name,
                               ccss_property_create_f	  property_ctor,
                               void			 *user_data,
                               ccss_property_t		**property);

/**
 * ccss_style_iterator_f:
 * @self:		a #ccss_style_t.
 * @property_name:	property name , e.g. `background-color'.
 * @user_data:	user data passed to #ccss_style_foreach.
 *
 * Specifies the type of the function passed to ccss_style_foreach().
 **/
typedef void (*ccss_style_iterator_f) (ccss_style_t const	*self,
				       char const		*property_name,
				       void			*user_data);

void
ccss_style_foreach (ccss_style_t const		*self,
		    ccss_style_iterator_f	 func,
		    void			*user_data);


void
ccss_style_dump (ccss_style_t const *self);

CCSS_END_DECLS

#endif /* CCSS_STYLE_H */