about summary refs log tree commit diff stats
path: root/apidocs
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-07-30 23:23:20 +0100
committerJames Booth <boothj5@gmail.com>2016-07-30 23:23:20 +0100
commit30e96b2d0f6cbda9065220b76dba0f6e90d59ef9 (patch)
treea9940cd1bc76a6bea19973b33f3530d2947e37c3 /apidocs
parent49a213b38248757a3dccf84b91348081fb676eb5 (diff)
downloadprofani-tty-30e96b2d0f6cbda9065220b76dba0f6e90d59ef9.tar.gz
Fixes to plugin API docs
Diffstat (limited to 'apidocs')
-rw-r--r--apidocs/c/profapi.h7
-rw-r--r--apidocs/c/profhooks.h10
-rw-r--r--apidocs/python/src/prof.py1
3 files changed, 8 insertions, 10 deletions
diff --git a/apidocs/c/profapi.h b/apidocs/c/profapi.h
index 257c2799..740d257b 100644
--- a/apidocs/c/profapi.h
+++ b/apidocs/c/profapi.h
@@ -90,7 +90,6 @@ void prof_completer_remove(const char *key, char **items);
 Remove all values from autocompletion for a command, or command argument.
 
 @param key the prefix from which to clear the autocompletion items
-@param items the items to remove
 */
 void prof_completer_clear(const char *key);
 
@@ -186,10 +185,10 @@ int prof_win_focus(PROF_WIN_TAG win);
 /**
 Show a message in the plugin window.
 @param win the {@link PROF_WIN_TAG} of the window to display the message
-@param line The message to print
+@param message The message to print
 @return 1 on success, 0 on failure
 */
-int prof_win_show(PROF_WIN_TAG win, char *line);
+int prof_win_show(PROF_WIN_TAG win, char *message);
 
 /**	
 Show a message in the plugin window, using the specified theme.
@@ -201,7 +200,7 @@ Themes must be specified in ~/.local/share/profanity/plugin_themes
 @param message the message to print 
 @return 1 on success, 0 on failure
 */
-int prof_win_show_themed(PROF_WIN_TAG tag, char *group, char *key, char *def, char *line);
+int prof_win_show_themed(PROF_WIN_TAG tag, char *group, char *key, char *def, char *message);
 
 /**
 Send an XMPP stanza
diff --git a/apidocs/c/profhooks.h b/apidocs/c/profhooks.h
index 78f77291..faad271d 100644
--- a/apidocs/c/profhooks.h
+++ b/apidocs/c/profhooks.h
@@ -46,14 +46,14 @@ Called before a chat message is displayed
 @param message the received message
 @return the new message to display, or NULL to preserve the original message 
 */
-char* prof_pre_chat_message_display(const char * const jid, const char *message);
+char* prof_pre_chat_message_display(const char * const barejid, const char *message);
 
 /**
 Called after a chat message is displayed
 @param barejid Jabber ID of the message sender
 @param message the received message
 */
-void prof_post_chat_message_display(const char * const jid, const char *message);
+void prof_post_chat_message_display(const char * const barejid, const char *message);
 
 /**
 Called before a chat message is sent
@@ -61,14 +61,14 @@ Called before a chat message is sent
 @param message the message to be sent
 @return the new message to send, or NULL to preserve the original message 
 */
-char* prof_pre_chat_message_send(const char * const jid, const char *message);
+char* prof_pre_chat_message_send(const char * const barejid, const char *message);
 
 /**
 Called after a chat message has been sent
 @param barejid Jabber ID of the message recipient
 @param message the sent message
 */
-void prof_post_chat_message_send(const char * const jid, const char *message);
+void prof_post_chat_message_send(const char * const barejid, const char *message);
 
 /**
 Called before a chat room message is displayed
@@ -215,4 +215,4 @@ void prof_on_chat_win_focus(const char *const barejid);
 Called when a chat room window is focussed
 @param room Jabber ID of the room
 */
-void prof_on_room_win_focus(const char *const roomjid);
+void prof_on_room_win_focus(const char *const room);
diff --git a/apidocs/python/src/prof.py b/apidocs/python/src/prof.py
index 247fd587..e0dbdd0d 100644
--- a/apidocs/python/src/prof.py
+++ b/apidocs/python/src/prof.py
@@ -172,7 +172,6 @@ def completer_clear(key):
     """Remove all values from autocompletion for a command, or command argument.
 
     :param key: the prefix from which to clear the autocompletion items
-    :param items: the items to remove
 
     Examples:
     ::
d=ab8b1f12eaf6b1524439f4a277cb7d122068acd7'>^
e087f6d4




b6d1143c ^
e087f6d4


d326f24d ^
e087f6d4
1fc1d8af ^
e087f6d4
0cb11571 ^
e087f6d4
b52ca53f ^
b6d1143c ^
e087f6d4
1fc1d8af ^
b6d1143c ^
0cb11571 ^
1fc1d8af ^
e4409c40 ^
e087f6d4



1fc1d8af ^
e087f6d4



d326f24d ^
e087f6d4






c68ecb8b ^
0cb11571 ^
e087f6d4
152e034b ^
e087f6d4








b6d1143c ^
e087f6d4







b6d1143c ^
e087f6d4


327b7c16 ^
e087f6d4

327b7c16 ^
e087f6d4









b6d1143c ^
0cb11571 ^
e087f6d4















b6d1143c ^
e087f6d4


c68ecb8b ^
0cb11571 ^
e087f6d4
152e034b ^
e087f6d4







0cb11571 ^

b52ca53f ^
d326f24d ^
e087f6d4
b6d1143c ^
e087f6d4
0cb11571 ^
e087f6d4
0cb11571 ^
b6d1143c ^
e087f6d4





d326f24d ^
e087f6d4





1fc1d8af ^

e087f6d4







b6d1143c ^
e087f6d4
d97a6513 ^
0cb11571 ^
d97a6513 ^
e087f6d4
c5fef0d4 ^
b6d1143c ^
e087f6d4





b52ca53f ^
b6d1143c ^
b52ca53f ^
b6d1143c ^
e087f6d4





d1349dd6 ^
e087f6d4


d1349dd6 ^
e087f6d4




0cb11571 ^
e087f6d4


d3f9d547 ^
b6d1143c ^
e087f6d4

0cb11571 ^
e087f6d4
50f9f94b ^
e087f6d4
d3f9d547 ^
e087f6d4




b6d1143c ^
e087f6d4
d3f9d547 ^
b6d1143c ^
e087f6d4


0cb11571 ^
e087f6d4




d3f9d547 ^
e087f6d4

0cb11571 ^
c68ecb8b ^
e087f6d4



b6d1143c ^
e087f6d4















0cb11571 ^


e087f6d4
b6d1143c ^
e087f6d4






0cb11571 ^

e087f6d4


d3f9d547 ^
e087f6d4




b6d1143c ^
e087f6d4















0cb11571 ^


e087f6d4
b6d1143c ^
e087f6d4




50f9f94b ^
e087f6d4
0cb11571 ^
e087f6d4


d3f9d547 ^
e087f6d4






0cb11571 ^

e087f6d4

d70fdcf7 ^
e087f6d4






d326f24d ^
e087f6d4




0cb11571 ^
e087f6d4
fe7fe190 ^
e087f6d4



945e8eb6 ^
e087f6d4
533c7482 ^
e087f6d4
0cb11571 ^

e087f6d4



b6d1143c ^
e087f6d4
dfae7cc5 ^
e087f6d4


e087f6d4
0cb11571 ^
b6d1143c ^

244151ea ^
e087f6d4



0cb11571 ^
e087f6d4
0cb11571 ^
e087f6d4
d3f9d547 ^
b6d1143c ^
e087f6d4


e087f6d4



dfae7cc5 ^
0cb11571 ^





e087f6d4

0cb11571 ^
fe7fe190 ^
0cb11571 ^



fe7fe190 ^
0cb11571 ^

1a6a3318 ^
e087f6d4





0cb11571 ^
e087f6d4



0cb11571 ^
e087f6d4






d326f24d ^
e087f6d4


b6d1143c ^
e087f6d4


























1876fe93 ^
0cb11571 ^
e087f6d4







d326f24d ^
e087f6d4
2cd8e80b ^

e087f6d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496