Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
bookmark.c File Reference
#include <stdlib.h>
#include "msg.h"
#include "history.h"
#include "capi.h"
#include "bookmark.h"
#include "../dpip/dpip.h"
Include dependency graph for bookmark.c:

Go to the source code of this file.

Functions

void a_Bookmarks_chat_add (BrowserWindow *Bw, char *Cmd, char *answer)
 Have a short chat with the bookmarks server, and finally ask it to add a new bookmark.
 
void a_Bookmarks_add (BrowserWindow *bw, const DilloUrl *url)
 Add the new bookmark through the bookmarks server.
 

Function Documentation

◆ a_Bookmarks_add()

void a_Bookmarks_add ( BrowserWindow bw,
const DilloUrl url 
)

Add the new bookmark through the bookmarks server.

Definition at line 71 of file bookmark.c.

References a_Bookmarks_chat_add(), a_Dpip_build_cmd(), a_History_get_title_by_url(), dFree(), dReturn_if_fail, and URL_STR.

Referenced by a_UIcmd_add_bookmark().

◆ a_Bookmarks_chat_add()

void a_Bookmarks_chat_add ( BrowserWindow Bw,
char *  Cmd,
char *  answer 
)

Have a short chat with the bookmarks server, and finally ask it to add a new bookmark.

(this is an example of dpi chat)

Definition at line 27 of file bookmark.c.

References _MSG, a_Capi_dpi_send_cmd(), a_Dpip_build_cmd(), dFree(), and dStrdup().

Referenced by a_Bookmarks_add(), and a_Capi_ccc().