~ubuntu-branches/ubuntu/trusty/libgksu1.2/trusty

« back to all changes in this revision

Viewing changes to libgksu/gksu-context.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2005-11-10 22:41:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051110224126-qas4smtk4w5gcgfr
Tags: 1.3.6-1ubuntu1
merged with debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
  GObjectClass parent;
100
100
};
101
101
 
 
102
typedef gboolean (*GksuAskPasswordFunc) (GksuContext*, gchar*, gpointer, GError**);
 
103
typedef void (*GksuPasswordNotNeededFunc) (GksuContext*, gpointer);
 
104
 
102
105
/* 
103
106
   Context handling
104
107
*/
161
164
gksu_context_try_need_password (GksuContext *context);
162
165
 
163
166
gboolean
 
167
gksu_context_run_full (GksuContext *context, 
 
168
                       GksuAskPasswordFunc ask_pass, gpointer user_data, 
 
169
                       GksuPasswordNotNeededFunc pass_not_needed, 
 
170
                       gpointer pnn_user_data, GError **error);
 
171
 
 
172
gboolean
164
173
gksu_context_run (GksuContext *context, GError **error);
165
174
 
166
175
gboolean
167
176
gksu_context_sudo_try_need_password (GksuContext *context);
168
177
 
169
178
gboolean
 
179
gksu_context_sudo_run_full (GksuContext *context, 
 
180
                            GksuAskPasswordFunc ask_pass, gpointer user_data, 
 
181
                            GksuPasswordNotNeededFunc pass_not_needed, 
 
182
                            gpointer pnn_user_data, GError **error);
 
183
 
 
184
gboolean
170
185
gksu_context_sudo_run (GksuContext *context, GError **error);
171
186
 
 
187
/* DO NOT USE - Deprecated */
 
188
gboolean
 
189
gksu_context_ask_and_run (GksuContext *context, GksuAskPasswordFunc ask_pass, 
 
190
                          gpointer user_data, GError **error);
 
191
 
 
192
gboolean
 
193
gksu_context_sudo_ask_and_run (GksuContext *context, GksuAskPasswordFunc ask_pass, 
 
194
                               gpointer user_data, GError **error);
 
195
 
172
196
G_END_DECLS
173
197
 
174
198
#endif