aboutsummaryrefslogtreecommitdiff
path: root/include/quickmedia
diff options
context:
space:
mode:
Diffstat (limited to 'include/quickmedia')
-rw-r--r--include/quickmedia/HtmlSearch.h2
-rw-r--r--include/quickmedia/NodeSearch.h1
-rw-r--r--include/quickmedia/XpathTokenizer.h2
3 files changed, 4 insertions, 1 deletions
diff --git a/include/quickmedia/HtmlSearch.h b/include/quickmedia/HtmlSearch.h
index af9bd7e..c0bd17c 100644
--- a/include/quickmedia/HtmlSearch.h
+++ b/include/quickmedia/HtmlSearch.h
@@ -12,7 +12,6 @@ extern "C" {
typedef struct QuickMediaHtmlAttribute QuickMediaHtmlAttribute;
typedef struct QuickMediaHtmlNode QuickMediaHtmlNode;
typedef struct QuickMediaHtmlChildNode QuickMediaHtmlChildNode;
-typedef struct QuickMediaTextNode QuickMediaTextNode;
typedef struct {
char *data;
@@ -54,6 +53,7 @@ typedef struct {
Returns an empty string view if attribute doesn't exist or if it doesn't have any value.
The result is only valid within the callback function scope.
The result is stripped of whitespace on the left and right side.
+ Case insensitive search.
*/
QuickMediaStringView quickmedia_html_node_get_attribute_value(QuickMediaMatchNode *self, const char *attribute_name);
diff --git a/include/quickmedia/NodeSearch.h b/include/quickmedia/NodeSearch.h
index 0e3b3f1..5f50488 100644
--- a/include/quickmedia/NodeSearch.h
+++ b/include/quickmedia/NodeSearch.h
@@ -17,6 +17,7 @@ typedef struct {
QuickMediaStringView value;
int defined;
int value_is_glob;
+ int index; /* -1 if no indexing */
} QuickMediaNodeSearchParam;
typedef struct QuickMediaNodeSearch QuickMediaNodeSearch;
diff --git a/include/quickmedia/XpathTokenizer.h b/include/quickmedia/XpathTokenizer.h
index 62f6d75..b4ceecb 100644
--- a/include/quickmedia/XpathTokenizer.h
+++ b/include/quickmedia/XpathTokenizer.h
@@ -12,6 +12,7 @@ typedef struct {
union {
QuickMediaStringView string;
QuickMediaStringView identifier;
+ int number;
};
} QuickMediaXpathTokenizer;
@@ -21,6 +22,7 @@ typedef enum {
QUICKMEDIA_XPATH_TOKEN_CHILD,
QUICKMEDIA_XPATH_TOKEN_CHILD_RECURSIVE,
QUICKMEDIA_XPATH_TOKEN_IDENTIFIER,
+ QUICKMEDIA_XPATH_TOKEN_NUMBER,
QUICKMEDIA_XPATH_TOKEN_STRING,
QUICKMEDIA_XPATH_TOKEN_OPEN_BRACKET,
QUICKMEDIA_XPATH_TOKEN_CLOSING_BRACKET,