77 lines
2.3 KiB
C
77 lines
2.3 KiB
C
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* The contents of this file are subject to the Netscape Public
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.mozilla.org/NPL/
|
|
*
|
|
* Software distributed under the License is distributed on an "AS
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
* implied. See the License for the specific language governing
|
|
* rights and limitations under the License.
|
|
*
|
|
* The Original Code is mozilla.org code.
|
|
*
|
|
* The Initial Developer of the Original Code is Netscape
|
|
* Communications Corporation. Portions created by Netscape are
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
|
|
#ifndef _RDF_BMK2MCF_H_
|
|
#define _RDF_BMK2MCF_H_
|
|
|
|
|
|
#include "rdf.h"
|
|
#include "rdf-int.h"
|
|
#include "vocab.h"
|
|
#include "stdio.h"
|
|
#include "ctype.h"
|
|
|
|
|
|
/* bmk2mcf.c data structures and defines */
|
|
|
|
#define OPEN_TITLE_STRING "<TITLE>"
|
|
#define CLOSE_TITLE_STRING "</TITLE>"
|
|
#define OPEN_H1_STRING "<H1>"
|
|
#define CLOSE_H1_STRING "</H1>"
|
|
#define OPEN_H3_STRING "<H3"
|
|
#define CLOSE_H3_STRING "</H3>"
|
|
#define OPEN_DL_STRING "<DL>"
|
|
#define CLOSE_DL_STRING "</DL>"
|
|
#define DT_STRING "<DT>"
|
|
#define PAR_STRING "<P>"
|
|
#define DD_STRING "<DD>"
|
|
|
|
#define IN_TITLE 1
|
|
#define IN_H3 5
|
|
#define IN_ITEM_TITLE 7
|
|
#define IN_ITEM_DESCRIPTION 9
|
|
|
|
|
|
|
|
/* bmk2mcf.c function prototypes */
|
|
|
|
XP_BEGIN_PROTOS
|
|
|
|
RDF_Resource createSeparator(void);
|
|
RDF_Resource createContainer (char* id);
|
|
char * resourceDescription (RDF rdf, RDF_Resource r);
|
|
char * resourceLastVisitDate (RDF rdf, RDF_Resource r);
|
|
char * resourceLastModifiedDate (RDF rdf, RDF_Resource r);
|
|
void parseNextBkBlob (RDFFile f, char* blob, int32 size);
|
|
void parseNextBkToken (RDFFile f, char* token);
|
|
void addDescription (RDFFile f, RDF_Resource r, char* token);
|
|
void bkStateTransition (RDFFile f, char* token);
|
|
void newFolderBkItem(RDFFile f, char* token);
|
|
void newLeafBkItem (RDFFile f, char* token);
|
|
char * numericDate(char *url);
|
|
void HT_WriteOutAsBookmarks1 (RDF rdf, PRFileDesc *fp, RDF_Resource u, RDF_Resource top, int indent);
|
|
void flushBookmarks();
|
|
|
|
XP_END_PROTOS
|
|
|
|
#endif
|