2014-03-22 23:05:41 +04:00
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
*
* Copyright ( C ) 2014 Colin Walters < walters @ verbum . org >
*
* 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 . , 59 Temple Place - Suite 330 ,
* Boston , MA 02111 - 1307 , USA .
*/
# pragma once
# include "ostree.h"
G_BEGIN_DECLS
typedef struct {
const char * name ;
gboolean ( * fn ) ( int argc , char * * argv , GCancellable * cancellable , GError * * error ) ;
} RpmOstreeCommand ;
# define BUILTINPROTO(name) gboolean rpmostree_builtin_ ## name (int argc, char **argv, GCancellable *cancellable, GError **error)
2014-05-26 23:05:08 +04:00
BUILTINPROTO ( compose ) ;
2014-03-25 02:11:21 +04:00
BUILTINPROTO ( upgrade ) ;
2014-05-30 02:00:11 +04:00
BUILTINPROTO ( rebase ) ;
2014-03-29 03:48:06 +04:00
BUILTINPROTO ( rollback ) ;
2014-06-11 21:47:10 +04:00
BUILTINPROTO ( status ) ;
2014-12-02 01:38:08 +03:00
BUILTINPROTO ( db ) ;
2014-03-22 23:05:41 +04:00
# undef BUILTINPROTO
2014-11-24 20:34:45 +03:00
gboolean rpmostree_option_context_parse ( GOptionContext * context ,
const GOptionEntry * main_entries ,
int * argc ,
char * * * argv ,
GError * * error ) ;
2014-03-22 23:05:41 +04:00
G_END_DECLS