"Fossies" - the Fresh Open Source Software Archive

Member "glusterfs-8.2/xlators/mgmt/glusterd/src/glusterd-snapd-svc.h" (16 Sep 2020, 973 Bytes) of package /linux/misc/glusterfs-8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "glusterd-snapd-svc.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2    Copyright (c) 2014 Red Hat, Inc. <http://www.redhat.com>
    3    This file is part of GlusterFS.
    4 
    5    This file is licensed to you under your choice of the GNU Lesser
    6    General Public License, version 3 or any later version (LGPLv3 or
    7    later), or the GNU General Public License, version 2 (GPLv2), in all
    8    cases as published by the Free Software Foundation.
    9 */
   10 
   11 #ifndef _GLUSTERD_SNAPD_SVC_H_
   12 #define _GLUSTERD_SNAPD_SVC_H_
   13 
   14 #include "glusterd-svc-mgmt.h"
   15 
   16 typedef struct glusterd_snapdsvc_ glusterd_snapdsvc_t;
   17 
   18 struct glusterd_snapdsvc_ {
   19     glusterd_svc_t svc;
   20     gf_store_handle_t *handle;
   21     int port;
   22 };
   23 
   24 void
   25 glusterd_snapdsvc_build(glusterd_svc_t *svc);
   26 
   27 int
   28 glusterd_snapdsvc_init(void *data);
   29 
   30 int
   31 glusterd_snapdsvc_manager(glusterd_svc_t *svc, void *data, int flags);
   32 
   33 int
   34 glusterd_snapdsvc_start(glusterd_svc_t *svc, int flags);
   35 
   36 int
   37 glusterd_snapdsvc_restart();
   38 
   39 int
   40 glusterd_snapdsvc_rpc_notify(glusterd_conn_t *conn, rpc_clnt_event_t event);
   41 
   42 #endif