Commit b89f907d authored by Ignacio Casal Quinteiro's avatar Ignacio Casal Quinteiro Committed by Johannes Schmid

Added const attribute. (#548649)

2008-08-20  Ignacio Casal Quinteiro  <nacho.resa@gmail.com>
 
  * plugins/subversion/svn-copy-command.h:
  * plugins/subversion/svn-copy-command.c:
  * plugins/subversion/svn-commit-command.c:
  * plugins/subversion/svn-commit-command.h:
  * plugins/subversion/svn-status-command.c:
  * plugins/subversion/svn-status-command.h:
  * plugins/subversion/svn-cat-command.c:
  * plugins/subversion/svn-cat-command.h:
  * plugins/subversion/svn-log-command.c:
  * plugins/subversion/svn-log-command.h:
  * plugins/subversion/svn-update-command.c:
  * plugins/subversion/svn-update-command.h:
  * plugins/subversion/svn-add-command.c:
  * plugins/subversion/svn-add-command.h:
  * plugins/subversion/svn-remove-command.c:
  * plugins/subversion/svn-remove-command.h:
  * plugins/subversion/svn-command.c:
  * plugins/subversion/svn-command.h:
  * plugins/subversion/svn-switch-command.h:
  * plugins/subversion/svn-switch-command.c:
  * plugins/subversion/svn-merge-command.c:
  * plugins/subversion/svn-merge-command.h:
  * plugins/subversion/svn-diff-command.c:
  * plugins/subversion/svn-diff-command.h:
  Added const attribute. (#548649)

svn path=/trunk/; revision=4211
parent 625296f8
2008-08-20 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
* plugins/subversion/svn-copy-command.h:
* plugins/subversion/svn-copy-command.c:
* plugins/subversion/svn-commit-command.c:
* plugins/subversion/svn-commit-command.h:
* plugins/subversion/svn-status-command.c:
* plugins/subversion/svn-status-command.h:
* plugins/subversion/svn-cat-command.c:
* plugins/subversion/svn-cat-command.h:
* plugins/subversion/svn-log-command.c:
* plugins/subversion/svn-log-command.h:
* plugins/subversion/svn-update-command.c:
* plugins/subversion/svn-update-command.h:
* plugins/subversion/svn-add-command.c:
* plugins/subversion/svn-add-command.h:
* plugins/subversion/svn-remove-command.c:
* plugins/subversion/svn-remove-command.h:
* plugins/subversion/svn-command.c:
* plugins/subversion/svn-command.h:
* plugins/subversion/svn-switch-command.h:
* plugins/subversion/svn-switch-command.c:
* plugins/subversion/svn-merge-command.c:
* plugins/subversion/svn-merge-command.h:
* plugins/subversion/svn-diff-command.c:
* plugins/subversion/svn-diff-command.h:
Added const attribute. (#548649)
2008-09-02 Yuriy Penkin <yuriy.penkin@gmail.com>
reviewed by: Johannes Schmid <jhs@gnome.org>
......@@ -92,7 +92,7 @@ svn_add_command_class_init (SvnAddCommandClass *klass)
SvnAddCommand *
svn_add_command_new (gchar *path, gboolean force, gboolean recursive)
svn_add_command_new (const gchar *path, gboolean force, gboolean recursive)
{
SvnAddCommand *self;
......
......@@ -57,7 +57,7 @@ struct _SvnAddCommand
};
GType svn_add_command_get_type (void) G_GNUC_CONST;
SvnAddCommand * svn_add_command_new (gchar *path, gboolean force, gboolean recursive);
SvnAddCommand * svn_add_command_new (const gchar *path, gboolean force, gboolean recursive);
void svn_add_command_destroy (SvnAddCommand *self);
G_END_DECLS
......
......@@ -143,7 +143,7 @@ svn_cat_command_class_init (SvnCatCommandClass *klass)
SvnCatCommand *
svn_cat_command_new (gchar *path, glong revision)
svn_cat_command_new (const gchar *path, glong revision)
{
SvnCatCommand *self;
......
......@@ -54,7 +54,7 @@ struct _SvnCatCommand
};
GType svn_cat_command_get_type (void) G_GNUC_CONST;
SvnCatCommand * svn_cat_command_new (gchar *path, glong revision);
SvnCatCommand * svn_cat_command_new (const gchar *path, glong revision);
void svn_cat_command_destroy (SvnCatCommand *self);
GQueue *svn_cat_command_get_output (SvnCatCommand *self);
......
......@@ -527,7 +527,7 @@ svn_command_class_init (SvnCommandClass *klass)
void
svn_command_push_info (SvnCommand *self, gchar *message)
svn_command_push_info (SvnCommand *self, const gchar *message)
{
anjuta_async_command_lock (ANJUTA_ASYNC_COMMAND (self));
g_queue_push_tail (self->priv->info_messages, g_strdup (message));
......@@ -600,7 +600,7 @@ svn_command_unlock_ui (SvnCommand *self)
}
gchar *
svn_command_make_canonical_path (SvnCommand *self, gchar *path)
svn_command_make_canonical_path (SvnCommand *self, const gchar *path)
{
const gchar *canonical_path;
......@@ -610,7 +610,7 @@ svn_command_make_canonical_path (SvnCommand *self, gchar *path)
}
svn_opt_revision_t *
svn_command_get_revision (gchar *revision)
svn_command_get_revision (const gchar *revision)
{
svn_opt_revision_t* svn_revision;
......
......@@ -59,17 +59,17 @@ struct _SvnCommand
};
GType svn_command_get_type (void) G_GNUC_CONST;
void svn_command_push_info (SvnCommand *self, gchar *message);
void svn_command_push_info (SvnCommand *self, const gchar *message);
GQueue * svn_command_get_info_queue (SvnCommand *self);
void svn_command_set_error (SvnCommand *self, svn_error_t *error);
svn_client_ctx_t *svn_command_get_client_context (SvnCommand *self);
apr_pool_t *svn_command_get_pool (SvnCommand *self);
void svn_command_lock_ui (SvnCommand *self);
void svn_command_unlock_ui (SvnCommand *self);
gchar *svn_command_make_canonical_path (SvnCommand *self, gchar *path);
gchar *svn_command_make_canonical_path (SvnCommand *self, const gchar *path);
/* Static methods */
svn_opt_revision_t *svn_command_get_revision (gchar *revision);
svn_opt_revision_t *svn_command_get_revision (const gchar *revision);
GList *svn_command_copy_path_list (GList *list);
void svn_command_free_path_list (GList *list);
......
......@@ -141,7 +141,7 @@ svn_commit_command_class_init (SvnCommitCommandClass *klass)
}
SvnCommitCommand *
svn_commit_command_new (GList *paths, gchar *log_message,
svn_commit_command_new (GList *paths, const gchar *log_message,
gboolean recursive)
{
SvnCommitCommand *self;
......
......@@ -57,7 +57,7 @@ struct _SvnCommitCommand
};
GType svn_commit_command_get_type (void) G_GNUC_CONST;
SvnCommitCommand * svn_commit_command_new (GList *paths, gchar *log_message,
SvnCommitCommand * svn_commit_command_new (GList *paths, const gchar *log_message,
gboolean recursive);
void svn_commit_command_destroy (SvnCommitCommand *self);
......
......@@ -142,8 +142,8 @@ svn_copy_command_class_init (SvnCopyCommandClass *klass)
}
SvnCopyCommand *
svn_copy_command_new (gchar *source_path, glong source_revision,
gchar *dest_path, gchar *log_message)
svn_copy_command_new (const gchar *source_path, glong source_revision,
const gchar *dest_path, const gchar *log_message)
{
SvnCopyCommand *self;
......
......@@ -61,8 +61,8 @@ enum
};
GType svn_copy_command_get_type (void) G_GNUC_CONST;
SvnCopyCommand *svn_copy_command_new (gchar *source_path, glong source_revision,
gchar *dest_path, gchar *log_message);
SvnCopyCommand *svn_copy_command_new (const gchar *source_path, glong source_revision,
const gchar *dest_path, const gchar *log_message);
void svn_copy_command_destroy (SvnCopyCommand *self);
G_END_DECLS
......
......@@ -110,7 +110,6 @@ svn_diff_command_run (AnjutaCommand *command)
gchar file_template[] = "anjuta-svn-diffXXXXXX";
gchar *line;
svn_error_t *error;
apr_status_t apr_error;
apr_off_t offset;
self = SVN_DIFF_COMMAND (command);
......@@ -208,7 +207,7 @@ svn_diff_command_class_init (SvnDiffCommandClass *klass)
}
SvnDiffCommand *
svn_diff_command_new (gchar *path, glong revision1, glong revision2,
svn_diff_command_new (const gchar *path, glong revision1, glong revision2,
gboolean recursive)
{
SvnDiffCommand *self;
......
......@@ -61,7 +61,7 @@ enum
};
GType svn_diff_command_get_type (void) G_GNUC_CONST;
SvnDiffCommand *svn_diff_command_new (gchar *path, glong revision1,
SvnDiffCommand *svn_diff_command_new (const gchar *path, glong revision1,
glong revision2, gboolean recursive);
void svn_diff_command_destroy (SvnDiffCommand *self);
......
......@@ -170,7 +170,7 @@ svn_log_command_class_init (SvnLogCommandClass *klass)
}
SvnLogCommand *
svn_log_command_new (gchar *path)
svn_log_command_new (const gchar *path)
{
SvnLogCommand *self;
......
......@@ -56,7 +56,7 @@ struct _SvnLogCommand
};
GType svn_log_command_get_type (void) G_GNUC_CONST;
SvnLogCommand *svn_log_command_new (gchar *path);
SvnLogCommand *svn_log_command_new (const gchar *path);
void svn_log_command_destroy (SvnLogCommand *self);
GQueue *svn_log_command_get_entry_queue (SvnLogCommand *self);
......
......@@ -121,11 +121,11 @@ svn_merge_command_class_init (SvnMergeCommandClass *klass)
}
SvnMergeCommand *
svn_merge_command_new (gchar *path1,
gchar *path2,
svn_merge_command_new (const gchar *path1,
const gchar *path2,
glong start_revision,
glong end_revision,
gchar *target_path,
const gchar *target_path,
gboolean recursive,
gboolean ignore_ancestry,
gboolean force,
......
......@@ -59,11 +59,11 @@ enum
};
GType svn_merge_command_get_type (void) G_GNUC_CONST;
SvnMergeCommand *svn_merge_command_new (gchar *path1,
gchar *path2,
SvnMergeCommand *svn_merge_command_new (const gchar *path1,
const gchar *path2,
glong start_revision,
glong end_revision,
gchar *target_path,
const gchar *target_path,
gboolean recursive,
gboolean ignore_ancestry,
gboolean force,
......
......@@ -134,7 +134,7 @@ svn_remove_command_class_init (SvnRemoveCommandClass *klass)
}
SvnRemoveCommand *
svn_remove_command_new (gchar *path, gchar *log_message, gboolean force)
svn_remove_command_new (const gchar *path, const gchar *log_message, gboolean force)
{
SvnRemoveCommand *self;
......
......@@ -57,7 +57,7 @@ struct _SvnRemoveCommand
};
GType svn_remove_command_get_type (void) G_GNUC_CONST;
SvnRemoveCommand * svn_remove_command_new (gchar *path, gchar *log_message,
SvnRemoveCommand * svn_remove_command_new (const gchar *path, const gchar *log_message,
gboolean force);
void svn_remove_command_destroy (SvnRemoveCommand *self);
gchar *svn_remove_command_get_path (SvnRemoveCommand *self);
......
......@@ -141,7 +141,7 @@ svn_status_command_class_init (SvnStatusCommandClass *klass)
}
SvnStatusCommand *
svn_status_command_new (gchar *path, gboolean recursive, gboolean get_all_items)
svn_status_command_new (const gchar *path, gboolean recursive, gboolean get_all_items)
{
SvnStatusCommand *self;
......
......@@ -55,7 +55,7 @@ struct _SvnStatusCommand
};
GType svn_status_command_get_type (void) G_GNUC_CONST;
SvnStatusCommand *svn_status_command_new (gchar *path, gboolean recursive,
SvnStatusCommand *svn_status_command_new (const gchar *path, gboolean recursive,
gboolean get_all_items);
void svn_status_command_destroy (SvnStatusCommand *self);
GQueue *svn_status_command_get_status_queue (SvnStatusCommand *self);
......
......@@ -109,7 +109,7 @@ svn_switch_command_class_init (SvnSwitchCommandClass *klass)
}
SvnSwitchCommand *
svn_switch_command_new (gchar *working_copy_path, gchar *branch_url,
svn_switch_command_new (const gchar *working_copy_path, const gchar *branch_url,
glong revision, gboolean recursive)
{
SvnSwitchCommand *self;
......
......@@ -59,8 +59,8 @@ enum
};
GType svn_switch_command_get_type (void) G_GNUC_CONST;
SvnSwitchCommand * svn_switch_command_new (gchar *working_copy_path,
gchar *branch_url, glong revision,
SvnSwitchCommand * svn_switch_command_new (const gchar *working_copy_path,
const gchar *branch_url, glong revision,
gboolean recursive);
void svn_switch_command_destroy (SvnSwitchCommand *self);
......
......@@ -113,7 +113,7 @@ svn_update_command_class_init (SvnUpdateCommandClass *klass)
SvnUpdateCommand *
svn_update_command_new (gchar *path, gchar *revision, gboolean recursive)
svn_update_command_new (const gchar *path, const gchar *revision, gboolean recursive)
{
SvnUpdateCommand *self;
......
......@@ -59,7 +59,7 @@ struct _SvnUpdateCommand
};
GType svn_update_command_get_type (void) G_GNUC_CONST;
SvnUpdateCommand * svn_update_command_new (gchar *path, gchar *revision,
SvnUpdateCommand * svn_update_command_new (const gchar *path, const gchar *revision,
gboolean recursive);
void svn_update_command_destroy (SvnUpdateCommand *self);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment