blob: d98a1263e3d5025ac05da94efa944d830c72eb91 (
plain)
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
|
%{
#include "swlocale.h"
%}
%ignore sword::SWLocale::operator+=;
%ignore sword::SWLocale::getBooks;
%include "swlocale.h"
%extend sword::SWLocale {
int getNumBookGroupings() {
return 2;
}
int getNumBooks(int grouping) {
char *numbooks;
struct sbook **books;
self->getBooks(&numbooks, &books);
return numbooks[grouping];
}
sbook getBook(int grouping, int booknum) {
char *numbooks;
struct sbook **books;
self->getBooks(&numbooks, &books);
return books[grouping][booknum];
}
};
|