Introduce template commands for command_util.sh.
[paraslash.git] / afs.h
diff --git a/afs.h b/afs.h
index fdc42f1f5aaa83e23645d32dacbd9eca89e1d2a0..aa94ac7282a27755cf6b43bd4773443f5a511a53 100644 (file)
--- a/afs.h
+++ b/afs.h
@@ -1,6 +1,5 @@
 #include <regex.h>
 #include "osl.h"
-#include "afh.h"
 #include "hash.h"
 
 #define DATABASE_DIR "/home/maan/tmp/osl" /* FIXME */
@@ -94,6 +93,7 @@ struct audio_file_data {
 
 /* afs */
 typedef int callback_function(const struct osl_object *, struct osl_object *);
+__noreturn int afs_init(uint32_t cookie, int socket_fd);
 int send_callback_request(callback_function *f, struct osl_object *query,
        struct osl_object *result);
 int send_standard_callback_request(int argc, const char **argv,
@@ -126,10 +126,6 @@ int attribute_init(struct table_info *ti);
 void attribute_shutdown(enum osl_close_flags flags);
 void get_attribute_bitmap(uint64_t *atts, char *buf);
 int get_attribute_bitnum_by_name(const char *att_name, unsigned char *bitnum);
-int com_lsatt(int fd, int argc, const char **argv);
-int com_setatt(int fd, int argc, const char **argv);
-int com_addatt(int fd, int argc, const char **argv);
-int com_rmatt(int fd, int argc, const char **argv);
 int get_attribute_text(uint64_t *atts, const char *delim, char **text);
 
 /* aft */
@@ -143,10 +139,6 @@ int get_afsi_of_row(const struct osl_row *row, struct afs_info *afsi);
 int get_audio_file_path_of_row(const struct osl_row *row, char **path);
 int get_afsi_object_of_row(const void *row, struct osl_object *obj);
 int audio_file_loop(void *private_data, osl_rbtree_loop_func *func);
-int com_touch(int fd, int argc, const char **argv);
-int com_add(int fd, int argc, const char **argv);
-int com_afs_ls(int fd, int argc, const char **argv);
-int com_afs_rm(int fd, int argc, const char **argv);
 
 /* mood */
 int mood_open(char *mood_name);
@@ -168,11 +160,6 @@ int playlist_update_audio_file(struct osl_row *aft_row);
 #define DECLARE_BLOB_SYMBOLS(table_name, cmd_prefix) \
        int table_name ## _init(struct table_info *ti); \
        void table_name ## _shutdown(enum osl_close_flags flags); \
-       int com_add ## cmd_prefix(int fd, int argc, const char **argv); \
-       int com_rm ## cmd_prefix(int fd, int argc, const char **argv); \
-       int com_cat ## cmd_prefix(int fd, int argc, const char **argv); \
-       int com_ls ## cmd_prefix(int fd, int argc, const char **argv); \
-       int com_mv ## cmd_prefix(int fd, int argc, const char **argv); \
        int cmd_prefix ## _get_name_by_id(uint32_t id, char **name); \
        extern struct osl_table *table_name ## _table;