| Top | Description | Object Hierarchy |
GgitDiffLine; const guint8 * ggit_diff_line_get_content (GgitDiffLine *line,gsize *length); gint64 ggit_diff_line_get_content_offset (GgitDiffLine *line); gint ggit_diff_line_get_new_lineno (GgitDiffLine *line); gint ggit_diff_line_get_old_lineno (GgitDiffLine *line); GgitDiffLineType ggit_diff_line_get_origin (GgitDiffLine *line); GType ggit_diff_line_get_type (void); GgitDiffLine * ggit_diff_line_ref (GgitDiffLine *line); void ggit_diff_line_unref (GgitDiffLine *line);
const guint8 * ggit_diff_line_get_content (GgitDiffLine *line,gsize *length);
Gets the content in bytes.
|
a GgitDiffLine. |
|
the number of returned bytes. [out] |
Returns : |
the content in bytes. [array length=length] |
gint64 ggit_diff_line_get_content_offset (GgitDiffLine *line);
Gets the content offset.
|
a GgitDiffLine. |
Returns : |
the content offset. |
gint ggit_diff_line_get_new_lineno (GgitDiffLine *line);
Gets the Line number in new file or -1 for deleted line.
|
a GgitDiffLine. |
Returns : |
the line's old number of lines. |
gint ggit_diff_line_get_old_lineno (GgitDiffLine *line);
Gets the line number in old file or -1 for added line.
|
a GgitDiffLine. |
Returns : |
the line's old line number. |
GgitDiffLineType ggit_diff_line_get_origin (GgitDiffLine *line);
Gets the GgitDiffLineType value.
|
a GgitDiffLine. |
Returns : |
the GgitDiffLineType value. |
GgitDiffLine * ggit_diff_line_ref (GgitDiffLine *line);
Atomically increments the reference count of line by one.
This function is MT-safe and may be called from any thread.
|
a GgitDiffLine. |
Returns : |
a GgitDiffLine. |
void ggit_diff_line_unref (GgitDiffLine *line);
Atomically decrements the reference count of line by one.
If the reference count drops to 0, line is freed.
|
a GgitDiffLine. |