int rur_opened_file(const char *opend_name, RurItem **list);
Once user opened a [new] file in your application, you can tell rur
to manage the opened file's record use the function
rur_opened_file(). The opened_name parameter will
be stored as the uri member of the new item, the list
parameter is the pointer point to the list pointer which is returned
on subsection 3.1. The return value of this function
described as following:
(By the way, The default page number is 1 of a new item. If your application is treated with some file like html that does not have page number. You can ignore this attribute of RurItem list.)
int rur_delete_file(RurItem *list, const char *uri);
Once user closed a file or activated the remove one file's history
record function you offered, you can call this function to tell rur
do not manage the item no longer which the uri is equal to you
offered. This function's return value also worth to be check:
int rur_save_pagenum(RurItem *list, const char *uri, int pagenum);
If you call this function, it mostly like that your user have select
another file to use. So, you want to save the file's page number your
user used just now. Or, user want to quit from your application,
you need to save current file's page number for next time you visit
it.
The pagenum parameter interpreted by rur as following:
Refer http://rur.sourceforge.net for more information.