root/cib/cibmessages.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /* 
   2  * Copyright (C) 2004 Andrew Beekhof <andrew@beekhof.net>
   3  * 
   4  * This program is free software; you can redistribute it and/or
   5  * modify it under the terms of the GNU Lesser General Public
   6  * License as published by the Free Software Foundation; either
   7  * version 2 of the License, or (at your option) any later version.
   8  * 
   9  * This software is distributed in the hope that it will be useful,
  10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12  * General Public License for more details.
  13  * 
  14  * You should have received a copy of the GNU Lesser General Public
  15  * License along with this library; if not, write to the Free Software
  16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  17  */
  18 #ifndef CIB_MESSAGES__H
  19 #  define CIB_MESSAGES__H
  20 
  21 extern xmlNode *createCibRequest(gboolean isLocal, const char *operation, const char *section,
  22                                  const char *verbose, xmlNode * data);
  23 
  24 extern int cib_process_shutdown_req(const char *op, int options, const char *section,
  25                                     xmlNode * req, xmlNode * input,
  26                                     xmlNode * existing_cib, xmlNode ** result_cib,
  27                                     xmlNode ** answer);
  28 
  29 extern int cib_process_default(const char *op, int options, const char *section,
  30                                xmlNode * req, xmlNode * input, xmlNode * existing_cib,
  31                                xmlNode ** result_cib, xmlNode ** answer);
  32 
  33 extern int cib_process_quit(const char *op, int options, const char *section,
  34                             xmlNode * req, xmlNode * input, xmlNode * existing_cib,
  35                             xmlNode ** result_cib, xmlNode ** answer);
  36 
  37 extern int cib_process_ping(const char *op, int options, const char *section,
  38                             xmlNode * req, xmlNode * input, xmlNode * existing_cib,
  39                             xmlNode ** result_cib, xmlNode ** answer);
  40 
  41 extern int cib_process_readwrite(const char *op, int options, const char *section,
  42                                  xmlNode * req, xmlNode * input, xmlNode * existing_cib,
  43                                  xmlNode ** result_cib, xmlNode ** answer);
  44 
  45 extern int cib_process_replace_svr(const char *op, int options, const char *section,
  46                                    xmlNode * req, xmlNode * input,
  47                                    xmlNode * existing_cib, xmlNode ** result_cib,
  48                                    xmlNode ** answer);
  49 
  50 extern int cib_server_process_diff(const char *op, int options, const char *section,
  51                                    xmlNode * req, xmlNode * input,
  52                                    xmlNode * existing_cib, xmlNode ** result_cib,
  53                                    xmlNode ** answer);
  54 
  55 extern int cib_process_sync(const char *op, int options, const char *section,
  56                             xmlNode * req, xmlNode * input, xmlNode * existing_cib,
  57                             xmlNode ** result_cib, xmlNode ** answer);
  58 
  59 extern int cib_process_sync_one(const char *op, int options, const char *section,
  60                                 xmlNode * req, xmlNode * input, xmlNode * existing_cib,
  61                                 xmlNode ** result_cib, xmlNode ** answer);
  62 
  63 extern int cib_process_delete_absolute(const char *op, int options, const char *section,
  64                                        xmlNode * req, xmlNode * input,
  65                                        xmlNode * existing_cib, xmlNode ** result_cib,
  66                                        xmlNode ** answer);
  67 
  68 int cib_process_upgrade_server(const char *op, int options, const char *section,
  69                                xmlNode * req, xmlNode * input,
  70                                xmlNode * existing_cib, xmlNode ** result_cib,
  71                                xmlNode ** answer);
  72 
  73 void send_sync_request(const char *host);
  74 
  75 
  76 #endif

/* [previous][next][first][last][top][bottom][index][help] */