[epiphany/wip/sync: 53/86] sync: Fix header files format



commit 10e1fe653845b58938618a33e0dec438301aee9c
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Wed Mar 8 14:49:04 2017 +0200

    sync: Fix header files format

 src/sync/ephy-sync-crypto.h  |  110 +++++++++++++++++++++---------------------
 src/sync/ephy-sync-secret.h  |    6 +-
 src/sync/ephy-sync-service.h |   72 ++++++++++++++--------------
 src/sync/ephy-sync-utils.h   |   30 ++++++------
 4 files changed, 109 insertions(+), 109 deletions(-)
---
diff --git a/src/sync/ephy-sync-crypto.h b/src/sync/ephy-sync-crypto.h
index 4b041fc..ce3935c 100644
--- a/src/sync/ephy-sync-crypto.h
+++ b/src/sync/ephy-sync-crypto.h
@@ -67,60 +67,60 @@ typedef struct {
   struct rsa_private_key private;
 } SyncCryptoRSAKeyPair;
 
-SyncCryptoHawkOptions     *ephy_sync_crypto_hawk_options_new        (const char *app,
-                                                                     const char *dlg,
-                                                                     const char *ext,
-                                                                     const char *content_type,
-                                                                     const char *hash,
-                                                                     const char *local_time_offset,
-                                                                     const char *nonce,
-                                                                     const char *payload,
-                                                                     const char *timestamp);
-void                       ephy_sync_crypto_hawk_options_free       (SyncCryptoHawkOptions *options);
-void                       ephy_sync_crypto_hawk_header_free        (SyncCryptoHawkHeader *header);
-void                       ephy_sync_crypto_rsa_key_pair_free       (SyncCryptoRSAKeyPair     *keypair);
-void                       ephy_sync_crypto_process_key_fetch_token (const char  *keyFetchToken,
-                                                                     guint8     **tokenID,
-                                                                     guint8     **reqHMACkey,
-                                                                     guint8     **respHMACkey,
-                                                                     guint8     **respXORkey);
-void                       ephy_sync_crypto_process_session_token   (const char  *sessionToken,
-                                                                     guint8     **tokenID,
-                                                                     guint8     **reqHMACkey,
-                                                                     guint8     **requestKey);
-void                       ephy_sync_crypto_compute_sync_keys       (const char  *bundle,
-                                                                     guint8      *respHMACkey,
-                                                                     guint8      *respXORkey,
-                                                                     guint8      *unwrapBKey,
-                                                                     guint8     **kA,
-                                                                     guint8     **kB);
-SyncCryptoHawkHeader      *ephy_sync_crypto_compute_hawk_header     (const char            *url,
-                                                                     const char            *method,
-                                                                     const char            *id,
-                                                                     guint8                *key,
-                                                                     gsize                  key_len,
-                                                                     SyncCryptoHawkOptions *options);
-SyncCryptoRSAKeyPair      *ephy_sync_crypto_generate_rsa_key_pair   (void);
-char                      *ephy_sync_crypto_create_assertion        (const char           *certificate,
-                                                                     const char           *audience,
-                                                                     guint64               duration,
-                                                                     SyncCryptoRSAKeyPair *keypair);
-void                       ephy_sync_crypto_random_hex_gen          (void   *ctx,
-                                                                     gsize   length,
-                                                                     guint8 *dst);
-char                      *ephy_sync_crypto_base64_urlsafe_encode   (guint8   *data,
-                                                                     gsize     data_len,
-                                                                     gboolean  strip);
-guint8                    *ephy_sync_crypto_base64_urlsafe_decode   (const char *text,
-                                                                     gsize      *out_len,
-                                                                     gboolean    fill);
-guint8                    *ephy_sync_crypto_aes_256                 (SyncCryptoAES256Mode  mode,
-                                                                     const guint8         *key,
-                                                                     const guint8         *data,
-                                                                     gsize                 data_len,
-                                                                     gsize                *out_len);
-char                      *ephy_sync_crypto_encode_hex              (guint8 *data,
-                                                                     gsize   data_len);
-guint8                    *ephy_sync_crypto_decode_hex              (const char *hex);
+SyncCryptoHawkOptions  *ephy_sync_crypto_hawk_options_new         (const char             *app,
+                                                                   const char             *dlg,
+                                                                   const char             *ext,
+                                                                   const char             *content_type,
+                                                                   const char             *hash,
+                                                                   const char             *local_time_offset,
+                                                                   const char             *nonce,
+                                                                   const char             *payload,
+                                                                   const char             *timestamp);
+void                    ephy_sync_crypto_hawk_options_free        (SyncCryptoHawkOptions  *options);
+void                    ephy_sync_crypto_hawk_header_free         (SyncCryptoHawkHeader   *header);
+void                    ephy_sync_crypto_rsa_key_pair_free        (SyncCryptoRSAKeyPair   *keypair);
+void                    ephy_sync_crypto_process_key_fetch_token  (const char             *keyFetchToken,
+                                                                   guint8                **tokenID,
+                                                                   guint8                **reqHMACkey,
+                                                                   guint8                **respHMACkey,
+                                                                   guint8                **respXORkey);
+void                    ephy_sync_crypto_process_session_token    (const char             *sessionToken,
+                                                                   guint8                **tokenID,
+                                                                   guint8                **reqHMACkey,
+                                                                   guint8                **requestKey);
+void                    ephy_sync_crypto_compute_sync_keys        (const char             *bundle,
+                                                                   guint8                 *respHMACkey,
+                                                                   guint8                 *respXORkey,
+                                                                   guint8                 *unwrapBKey,
+                                                                   guint8                **kA,
+                                                                   guint8                **kB);
+SyncCryptoHawkHeader   *ephy_sync_crypto_compute_hawk_header      (const char             *url,
+                                                                   const char             *method,
+                                                                   const char             *id,
+                                                                   guint8                 *key,
+                                                                   gsize                   key_len,
+                                                                   SyncCryptoHawkOptions  *options);
+SyncCryptoRSAKeyPair   *ephy_sync_crypto_generate_rsa_key_pair    (void);
+char                   *ephy_sync_crypto_create_assertion         (const char             *certificate,
+                                                                   const char             *audience,
+                                                                   guint64                 duration,
+                                                                   SyncCryptoRSAKeyPair   *keypair);
+void                    ephy_sync_crypto_random_hex_gen           (void                   *ctx,
+                                                                   gsize                   length,
+                                                                   guint8                 *dst);
+char                   *ephy_sync_crypto_base64_urlsafe_encode    (guint8                 *data,
+                                                                   gsize                   data_len,
+                                                                   gboolean                strip);
+guint8                 *ephy_sync_crypto_base64_urlsafe_decode    (const char             *text,
+                                                                   gsize                  *out_len,
+                                                                   gboolean                fill);
+guint8                 *ephy_sync_crypto_aes_256                  (SyncCryptoAES256Mode    mode,
+                                                                   const guint8           *key,
+                                                                   const guint8           *data,
+                                                                   gsize                   data_len,
+                                                                   gsize                  *out_len);
+char                   *ephy_sync_crypto_encode_hex               (guint8                 *data,
+                                                                   gsize                   data_len);
+guint8                 *ephy_sync_crypto_decode_hex               (const char             *hex);
 
 G_END_DECLS
diff --git a/src/sync/ephy-sync-secret.h b/src/sync/ephy-sync-secret.h
index 7b52057..e0d6eee 100644
--- a/src/sync/ephy-sync-secret.h
+++ b/src/sync/ephy-sync-secret.h
@@ -35,8 +35,8 @@ const SecretSchema *ephy_sync_secret_get_token_schema (void) G_GNUC_CONST;
 
 #define EPHY_SYNC_TOKEN_SCHEMA (ephy_sync_secret_get_token_schema ())
 
-void ephy_sync_secret_forget_tokens (void);
-void ephy_sync_secret_load_tokens   (EphySyncService *service);
-void ephy_sync_secret_store_tokens  (EphySyncService *service);
+void  ephy_sync_secret_forget_tokens  (void);
+void  ephy_sync_secret_load_tokens    (EphySyncService *service);
+void  ephy_sync_secret_store_tokens   (EphySyncService *service);
 
 G_END_DECLS
diff --git a/src/sync/ephy-sync-service.h b/src/sync/ephy-sync-service.h
index a50fd3b..2f46478 100644
--- a/src/sync/ephy-sync-service.h
+++ b/src/sync/ephy-sync-service.h
@@ -32,41 +32,41 @@ G_BEGIN_DECLS
 
 G_DECLARE_FINAL_TYPE (EphySyncService, ephy_sync_service, EPHY, SYNC_SERVICE, GObject)
 
-EphySyncService *ephy_sync_service_new                          (void);
-gboolean         ephy_sync_service_is_signed_in                 (EphySyncService *self);
-char            *ephy_sync_service_get_user_email               (EphySyncService *self);
-void             ephy_sync_service_set_user_email               (EphySyncService *self,
-                                                                 const char      *email);
-double           ephy_sync_service_get_sync_time                (EphySyncService *self);
-void             ephy_sync_service_set_sync_time                (EphySyncService *self,
-                                                                 double           time);
-char            *ephy_sync_service_get_token                    (EphySyncService   *self,
-                                                                 EphySyncTokenType  type);
-void             ephy_sync_service_set_token                    (EphySyncService   *self,
-                                                                 const char        *value,
-                                                                 EphySyncTokenType  type);
-void             ephy_sync_service_clear_storage_credentials    (EphySyncService *self);
-void             ephy_sync_service_clear_tokens                 (EphySyncService *self);
-void             ephy_sync_service_destroy_session              (EphySyncService *self,
-                                                                 const char      *sessionToken);
-void             ephy_sync_service_do_sign_in                   (EphySyncService *self,
-                                                                 const char      *email,
-                                                                 const char      *uid,
-                                                                 const char      *sessionToken,
-                                                                 const char      *keyFetchToken,
-                                                                 const char      *unwrapBKey);
-void             ephy_sync_service_upload_bookmark              (EphySyncService *self,
-                                                                 EphyBookmark    *bookmark,
-                                                                 gboolean         force);
-void             ephy_sync_service_download_bookmark            (EphySyncService *self,
-                                                                 EphyBookmark    *bookmark);
-void             ephy_sync_service_delete_bookmark              (EphySyncService *self,
-                                                                 EphyBookmark    *bookmark,
-                                                                 gboolean         conditional);
-void             ephy_sync_service_sync_bookmarks               (EphySyncService *self,
-                                                                 gboolean         first);
-void             ephy_sync_service_start_periodical_sync        (EphySyncService *self,
-                                                                 gboolean         now);
-void             ephy_sync_service_stop_periodical_sync         (EphySyncService *self);
+EphySyncService  *ephy_sync_service_new                        (void);
+gboolean          ephy_sync_service_is_signed_in               (EphySyncService   *self);
+char             *ephy_sync_service_get_user_email             (EphySyncService   *self);
+void              ephy_sync_service_set_user_email             (EphySyncService   *self,
+                                                                const char        *email);
+double            ephy_sync_service_get_sync_time              (EphySyncService   *self);
+void              ephy_sync_service_set_sync_time              (EphySyncService   *self,
+                                                                double             time);
+char             *ephy_sync_service_get_token                  (EphySyncService   *self,
+                                                                EphySyncTokenType  type);
+void              ephy_sync_service_set_token                  (EphySyncService   *self,
+                                                                const char        *value,
+                                                                EphySyncTokenType  type);
+void              ephy_sync_service_clear_storage_credentials  (EphySyncService   *self);
+void              ephy_sync_service_clear_tokens               (EphySyncService   *self);
+void              ephy_sync_service_destroy_session            (EphySyncService   *self,
+                                                                const char        *sessionToken);
+void              ephy_sync_service_do_sign_in                 (EphySyncService   *self,
+                                                                const char        *email,
+                                                                const char        *uid,
+                                                                const char        *sessionToken,
+                                                                const char        *keyFetchToken,
+                                                                const char        *unwrapBKey);
+void              ephy_sync_service_upload_bookmark            (EphySyncService   *self,
+                                                                EphyBookmark      *bookmark,
+                                                                gboolean           force);
+void              ephy_sync_service_download_bookmark          (EphySyncService   *self,
+                                                                EphyBookmark      *bookmark);
+void              ephy_sync_service_delete_bookmark            (EphySyncService   *self,
+                                                                EphyBookmark      *bookmark,
+                                                                gboolean           conditional);
+void              ephy_sync_service_sync_bookmarks             (EphySyncService   *self,
+                                                                gboolean           first);
+void              ephy_sync_service_start_periodical_sync      (EphySyncService   *self,
+                                                                gboolean           now);
+void              ephy_sync_service_stop_periodical_sync       (EphySyncService   *self);
 
 G_END_DECLS
diff --git a/src/sync/ephy-sync-utils.h b/src/sync/ephy-sync-utils.h
index 3bc4d82..4dd8d5d 100644
--- a/src/sync/ephy-sync-utils.h
+++ b/src/sync/ephy-sync-utils.h
@@ -33,20 +33,20 @@ typedef enum {
 
 G_BEGIN_DECLS
 
-char              *ephy_sync_utils_build_json_string    (const char *key,
-                                                         const char *value,
-                                                         ...) G_GNUC_NULL_TERMINATED;
-char              *ephy_sync_utils_create_bso_json      (const char *id,
-                                                         const char *payload);
-char              *ephy_sync_utils_make_audience        (const char *url);
-const char        *ephy_sync_utils_token_name_from_type (EphySyncTokenType type);
-EphySyncTokenType  ephy_sync_utils_token_type_from_name (const char *name);
-char              *ephy_sync_utils_find_and_replace     (const char *src,
-                                                         const char *find,
-                                                         const char *repl);
-guint8            *ephy_sync_utils_concatenate_bytes    (guint8 *bytes,
-                                                         gsize   bytes_len,
-                                                         ...) G_GNUC_NULL_TERMINATED;
-gint64             ephy_sync_utils_current_time_seconds  (void);
+char               *ephy_sync_utils_build_json_string     (const char        *key,
+                                                           const char        *value,
+                                                           ...) G_GNUC_NULL_TERMINATED;
+char               *ephy_sync_utils_create_bso_json       (const char        *id,
+                                                           const char        *payload);
+char               *ephy_sync_utils_make_audience         (const char        *url);
+const char         *ephy_sync_utils_token_name_from_type  (EphySyncTokenType  type);
+EphySyncTokenType   ephy_sync_utils_token_type_from_name  (const char        *name);
+char               *ephy_sync_utils_find_and_replace      (const char        *src,
+                                                           const char        *find,
+                                                           const char        *repl);
+guint8             *ephy_sync_utils_concatenate_bytes     (guint8            *bytes,
+                                                           gsize              bytes_len,
+                                                           ...) G_GNUC_NULL_TERMINATED;
+gint64              ephy_sync_utils_current_time_seconds  (void);
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]