/* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
/*
* This file is part of The Croco Library
*
* modify it under the terms of version 2.1 of the GNU Lesser General Public
* License as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* See COPYRIGHTS file for copyrights information.
*/
#include <stdio.h>
#include "cr-attr-sel.h"
/**
* CRAttrSel:
*
* #CRAdditionalSel abstracts an attribute selector.
* Attributes selectors are described in the css2 spec [5.8].
* There are more generally used in the css2 selectors described in
* css2 spec [5] .
*/
/**
* cr_attr_sel_new:
* The constructor of #CRAttrSel.
* Returns the newly allocated instance
* of #CRAttrSel.
*/
cr_attr_sel_new (void)
{
return result;
}
/**
* cr_attr_sel_append_attr_sel:
* @a_this: the this pointer of the current instance of #CRAttrSel.
* @a_attr_sel: selector to append.
*
* Appends an attribute selector to the current list of
* attribute selectors represented by a_this.
* Returns CR_OK upon successfull completion, an error code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
* cr_attr_sel_prepend_attr_sel:
*@a_this: the "this pointer" of the current instance *of #CRAttrSel.
*@a_attr_sel: the attribute selector to append.
*
*Prepends an attribute selector to the list of
*attributes selector represented by a_this.
*Returns CR_OK upon successfull completion, an error code otherwise.
*/
enum CRStatus
{
return CR_OK;
}
/**
* cr_attr_sel_to_string:
* @a_this: the current instance of #CRAttrSel.
*
* Serializes an attribute selector into a string
* Returns the serialized attribute selector.
*/
guchar *
{
}
if (name) {
}
}
if (value) {
case SET:
break;
case EQUALS:
break;
case INCLUDES:
break;
case DASHMATCH:
break;
default:
break;
}
}
}
}
if (str_buf) {
}
return result;
}
/**
* cr_attr_sel_dump:
* @a_this: the "this pointer" of the current instance of
* #CRAttrSel.
* @a_fp: the destination file.
*
* Dumps the current instance of #CRAttrSel to a file.
*/
void
{
if (tmp_str) {
}
}
/**
*cr_attr_sel_destroy:
*@a_this: the "this pointer" of the current
*instance of #CRAttrSel.
*
*Destroys the current instance of #CRAttrSel.
*Frees all the fields if they are non null.
*/
void
{
}
}
}
}