| 1853 | } |
| 1854 | |
| 1855 | int main(int argc, char *argv[]) |
| 1856 | { |
| 1857 | setup_locale(); |
| 1858 | |
| 1859 | /* No datadir is default */ |
| 1860 | datadir = NULL; |
| 1861 | db_dsn = NULL; |
| 1862 | |
| 1863 | plugin_main(argv, init, PLUGIN_STATIC, true, NULL, |
| 1864 | commands, ARRAY_SIZE(commands), |
| 1865 | notifs, ARRAY_SIZE(notifs), |
| 1866 | NULL, 0, |
| 1867 | NULL, 0, |
| 1868 | plugin_option("bookkeeper-dir", |
| 1869 | "string", |
| 1870 | "Location for bookkeeper records.", |
| 1871 | charp_option, &datadir), |
| 1872 | plugin_option("bookkeeper-db", |
| 1873 | "string", |
| 1874 | "Location of the bookkeeper database", |
| 1875 | charp_option, &db_dsn), |
| 1876 | NULL); |
| 1877 | |
| 1878 | return 0; |
| 1879 | } |
nothing calls this directly
no test coverage detected