Note: you should HTML-escape parameter before calling this.
function contextLine($line) {
return array(
' ',
array(
'data' => theme('diff_content_line', array(
'line' => $line,
)),
'class' => 'diff-context',
),
);
}